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.
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/

Reply via email to