[lug] Limits of grep?

Jeffrey B. Siegal jbs at quiotix.com
Sat Sep 30 04:38:42 MDT 2000


Subba Rao wrote:
> 
> On  0, "Jeffrey B. Siegal" <jbs at quiotix.com> wrote:
> > Subba Rao wrote:
> > > Are there any other recommended tools to search through such large list of
> > > files?
> >
> > cd [directory to search]
> > find . -print0 | xargs -0 grep [string to match] /dev/null
> >
> 
> Thanks for replying. The following solution worked for me and is much faster.
> 
> find <path> -print | xargs -n 500 grep <pattern>

That shouldn't be any faster than what I wrote.  What makes you think it
is?




More information about the LUG mailing list