[linux-elitists] Re: Which Linux distribution is the most powerful?

Sean Neakums sneakums@teh.entar.net
Sat Jul 3 15:02:05 PDT 2004


The Robber Of Zork <robber@zork.net> writes:

> OpenBSD 3.5:
>
> bear:wingnut {86} grep -r '[Pp]owerful' /usr/ports/*/*/*/DESCR |wc -l
>       52 
> bear:wingnut {87} ls -lR /usr/ports |grep DESCR |wc -l
>     2302 
>
> ...which gives 2.26%
>
> My FreeBSD machine is too feeble to crank the grep...

If it's saying "argument list too long" or somesuch, you need xargs.
Something like

$ find /usr/ports -name DESCR -print | xargs grep '[Pp]owerful' | wc -l




More information about the linux-elitists mailing list