Had time to learn one more thing, since I wanted to search the last 7 days of files I needed to use -7 for mtime or I only get 1 day of files feed to grep.
One day 7x24 hrs ago
$ find . -mtime 7 -print | xargs grep -i -C10 'SearchString'
All days since 7x24 hrs ago
$ find . -mtime -7 -print | xargs grep -i -C10 'SearchString'
Now I think I have it.
Clutch
Last edited by Clutch2; 02-26-2008 at 03:37 AM.
|