Date: Fri, 14 Nov 2003 15:04:57 +1100 From: JacobRhoden <jrhoden@unimelb.edu.au> To: Francisco Reyes <lists@natserv.com>, Matthew Hunt <mph@astro.caltech.edu> Cc: FreeBSD Questions List <questions@freebsd.org> Subject: Re: Recursion with grep? Message-ID: <200311141504.57201.jrhoden@unimelb.edu.au> In-Reply-To: <20031113223611.X85161@zoraida.natserv.net> References: <20031113173505.F84157@zoraida.natserv.net> <20031113224657.GA66502@wopr.caltech.edu> <20031113223611.X85161@zoraida.natserv.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@unimelb.edu.au Melbourne University Mobile: +61 403 788 386
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311141504.57201.jrhoden>