At the moment I'm using two commands, I'm sure there must be a better way...
wim@wim-acer:~/ffmpeg$ find . -name "*.h" -print0 | xargs -0 grep -i invalid\ preset
wim@wim-acer:~/ffmpeg$ find . -name "*.c" -print0 | xargs -0 grep -i invalid\ preset
|
feedback
|
|
ack (or, on Debian/Ubuntu, ack-grep) will ignore non-source files like version control or binaries. Very useful. to search just .c and .h files, as above:
the | |||||
feedback
|
|
The find command can call grep itself.
and variations of thereof. | |||||
|
feedback
|
|
The
| |||
|
feedback
|
-name '*.[ch]'work? – glenn jackman Aug 25 '11 at 14:40