[TriLUG] Cool Linux phone, and grep question

Phillip Rhodes mindcrime at cpphacker.co.uk
Wed Jan 31 09:40:43 EST 2007


Tim Jowers wrote:
>
> Does grep have a recursive AND file match option? How can I do a 
> recursive
> grep on .c files?
>
> # grep "schedule" -R *.c
> grep: *.c: No such file or directory
>
Try

# grep -R --include=*.c "schedule" .


TTYL,


Phillip
-- 

http://www.linkedin.com/in/philliprhodes



More information about the TriLUG mailing list