[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Limits of grep?



On  0, Raju Mathur <raju@xxxxxxxxxxxxxxx> wrote:
> You can use either of:
> 
>     grep -r "pattern" .
> 
> or
>     find . -type f | xargs grep "pattern" /dev/null
> 

Thanks for replying. I tried the following solution and works much faster.

find <path> -print | xargs -n 500 grep <pattern>

Thanks to everyone who replied with a solution!

-- 

Subba Rao
subb3@xxxxxxxxxxxxx
http://pws.prserv.net/truemax/