[lug] Limits of grep?
Subba Rao
subb3 at attglobal.net
Sat Sep 30 02:36:17 MDT 2000
On 0, "Jeffrey B. Siegal" <jbs at quiotix.com> wrote:
> 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?
>
Earlier I did not time the command you sent me. After timing them, I see
better performance with your command construct. Sorry about that Jeff. ;-)
--
Subba Rao
subb3 at attglobal.net
http://pws.prserv.net/truemax/
More information about the LUG
mailing list