[TriLUG] Cool Linux phone, and grep question
Magnus
magnus at trilug.org
Wed Jan 31 09:17:40 EST 2007
Magnus wrote:
> find . -name \*.c -exec grep "schedule(" \;
Or rather:
find . -type f -name \*.c -exec grep -H "schedule(" \;
1) Don't want to grep a directory named "foo.c" so make sure we just
check regular files.
2) Include the filename with the beginning of the grep results.
--
Trying to figure out what to do with big heavy and retired Sun servers
in the Raleigh area? Drop me a note.
More information about the TriLUG
mailing list