Subject: Re: Recursive grep (where is limfree defined?)
To: None <thieleke@icaen.uiowa.edu>
From: David Mazieres <dm@amsterdam.lcs.mit.edu>
List: current-users
Date: 01/24/1996 02:29:55
> From: Jeff Thieleke <thieleke@icaen.uiowa.edu>
> Date: Mon, 22 Jan 1996 19:27:36 -0600 (CST)
> X-Mailer: ELM [version 2.4 PL24 ME8b]
> MIME-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> Content-Length:       9723
> Sender: owner-current-users@NetBSD.ORG
> Precedence: list
> X-Loop: current-users@NetBSD.ORG
> 
> > >Where is limfree defined?
> > 
> > find /usr/src/sys -name '*.c' -exec grep '^limfree' '{}' /dev/null \;
> 
> 
> I found this patch today on the FreeBSD hackers mailing list.  It patches
> the grep source to allow recursive searches.  Compared to the find method
> shown above, it is about 3-4x faster.

The patch you sent may be a good idea, but running grep that way is
not what you want to be doing.  Try:

find /usr/src/sys -name '*.c' -print | xargs egrep '^limfree'

David