[lug] Limits of grep?

Subba Rao subb3 at attglobal.net
Fri Sep 29 23:15:01 MDT 2000


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>

Thanks to everyone who replied with a solution!

-- 

Subba Rao
subb3 at attglobal.net
http://pws.prserv.net/truemax/




More information about the LUG mailing list