Files and Strings

Associate
Joined
1 Aug 2003
Posts
1,053
I need to find several files that were made within a certain date and contain certain text. Clearly I'm making a pig's ear out of it, but my first thoughts were something like this....

find ./ -iname "*.server" -mtime -19 | grep -H "string"

Advice would be more than welcome...
 
Thank you so much, that completely sorted the problem.

Slightly faster than writing the perl script I found was to perform two time sensitive searches and output the values to text files and then compare the two to find matches resulting in a list of files made between two dates :)

Possibly a little more complicated, but I found it easier than writing a perl script.
 
Back
Top Bottom