[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Limits of grep?
On 0, Ariel Biener <ariel@fireball.tau.ac.il> wrote:
> On Tue, 26 Sep 2000, Shachar Shemesh wrote:
>
>
> I suggest using xargs with such a large number of files. Assume you're in
> the directory with those 10000+ files:
>
>
> find . -name "*"|xargs grep -s -l pattern
>
> This will return a list of files that include the pattern, and will
> supress unwanted errors. Then, you could feed the output of this to a
> further `|' (pipe), and do more analysis.
>
>
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@attglobal.net
http://pws.prserv.net/truemax/
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il