rgrep: Recurse down directory tree and egrep ordinary files for patterns. It is essentially a marriage of the "find" and "egrep" commands with (presumably) a less awkward syntax. Usage: rgrep [] [--] [] where can be: -help this help. -debug -D no action, just print command line parse. -d find files starting in instead of "." put a list of dir's space separated inside quotes. -cmd use instead of "egrep". -file only do file basenames matching perl regexp -path as -file, but apply regexp to full path. -q1 quote all the non - starting with: ' -q2 quote all the non - starting with: " -q same as -q1. -h do not print filenames in output. -H ONLY print filenames in output. -b,-bin search non-text files as well. Use "--" to signal end of , if not present you are allowed at most one rgrep_opt. Examples: rgrep #include Find all "#include" lines in this directory and all sub-directories. (non binary files). rgrep -h -q -- -i 'foo.*(bar)' Do not print out filenames. Quote the nasty regexp. Pass -i flag to egrep