can grep use filenames from stdin?

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Sun Mar 18 18:00:33 UTC 2007


On Mon, Mar 19, 2007 at 01:51:30AM +0800, Rogelio Serrano wrote:
> yes but xargs will spawn grep for each file and grep will then compile
> the pattern everytime.

No. The default changes from system to system, but it's usually a large
number. On OSX, it's 5000.

If you do want one spawn per file, add -n1 to xargs' arguments.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070318/030e47ac/attachment-0002.pgp 


More information about the busybox mailing list