From owner-freebsd-hackers Mon Jan 22 17:49:28 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA12662 for hackers-outgoing; Mon, 22 Jan 1996 17:49:28 -0800 (PST) Received: from rover.village.org (rover.village.org [198.137.146.49]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA12650 for ; Mon, 22 Jan 1996 17:49:21 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rover.village.org (8.6.11/8.6.6) with SMTP id SAA01369; Mon, 22 Jan 1996 18:48:59 -0700 Message-Id: <199601230148.SAA01369@rover.village.org> To: Josh MacDonald Subject: Re: recursive grep Cc: Wolfram Schneider , hackers@freebsd.org In-reply-to: Your message of Mon, 22 Jan 1996 17:31:37 PST Date: Mon, 22 Jan 1996 18:48:59 -0700 From: Warner Losh Sender: owner-hackers@freebsd.org Precedence: bulk : > find /usr/local | xargs grep foo : and why do we need an extra pipe, either? : : find /usr/include -name \*f.h -exec grep foo {} /dev/null \; The extra pipe will fork/exec grep once for each 100k or so characters of command line args, while this will fork/exec grep for each file. Guess which one is likely to be faster :-). Warner