Recursive grep question

Góra strony
Załączniki:
Wiadomość jako email
+ (text/plain)
Delete this message
Reply to this message
Autor: Kevin Buettner
Data:  
Temat: Recursive grep question
On Sep 26, 3:14pm, Alan Dayley wrote:

> I gave the 'r' option for a recursive search and I know that the subX
> diretories have *.c files. But, grep appearently does not decend into
> the subX directories because the top directory has no *.c files. How do
> I make it search the subX directories anyway?


find . -name '*.c' | xargs grep foobar

Kevin