It's worth to read the manual pages of
grep,
find and
xargs. For a more detailed explanation of the find utility, please take a look at
http://www.gnu.org/software/findutil...mono/find.html.
Regarding your issue, you can find all the *.c files recursively, starting from the current working directory, by means of
and to pass the list of files to the grep command, you can try xargs as in
Code:
find . -name \*.c | xargs grep PATTERN