Recursion with grep?
lists at natserv.com
Thu Nov 13 20:41:03 PST 2003
On Fri, 14 Nov 2003, JacobRhoden wrote:
> No need to hack grep plese! just use -R (it appears the man page does not
> document the -R function, but you need to use -R in grep for it to recurse.
-R == -r
That was mentioned in the previous emails. It only recurses directories.
It will not work with a filemask.
You can't say
grep -r <string> *.c
You can only say
grep -r <string> <directory>
More information about the freebsd-questions