Recursion with grep?
JacobRhoden
jrhoden at unimelb.edu.au
Thu Nov 13 20:05:05 PST 2003
On Fri, 14 Nov 2003 02:37 pm, Francisco Reyes wrote:
> On Thu, 13 Nov 2003, Matthew Hunt wrote:
> > > The man page for grep says to use "-r" to recurse, yet when I try
> > > something like
> > >
> > > grep -r -li string *.c
> > >
> > > I get no files. However, if I go into one of the subdirectories and do
> > > a plain grep <string> *.c then <string> is found on several files.
> >
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.
Jacob Rhoden Phone: +61 3 8344 4478
ITS Division Email: jrhoden at unimelb.edu.au
Melbourne University Mobile: +61 403 788 386
More information about the freebsd-questions
mailing list