[TriLUG] Cool Linux phone, and grep question

Tim Jowers timjowers at gmail.com
Wed Jan 31 08:45:50 EST 2007


Check out this OpenSource phone:
http://linuxdevices.com/news/NS2986976174.html
I need to get one to play with in the near future. I hope this will succeed
more than J2ME has so far.

Oh yeah,

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

So far I'm doing:
grep "schedule(" -R * | grep ".c"
or
find . -name '*.c' | xargs grep "schedule("

Am I missing something with grep?

Tim



More information about the TriLUG mailing list