Subject: Re: Recursive grep (where is limfree defined?)
To: Jeff Thieleke <>
From: Brett Lymn <>
List: current-users
Date: 01/23/1996 21:30:06
According to Jeff Thieleke:
>> >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.

Hmmmm is it faster than:

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

doing an exec for each file would hurt a bit, xargs packs them up into
a reasonable chunk.

Brett Lymn, Computer Systems Administrator, AWA Defence Industries
  "Upgrading your memory gives you MORE RAM!" - ad in MacWAREHOUSE catalogue.