From owner-freebsd-hackers Mon Jan 22 20:34:32 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA28172 for hackers-outgoing; Mon, 22 Jan 1996 20:34:32 -0800 (PST) Received: from paris.CS.Berkeley.EDU (paris.CS.Berkeley.EDU [128.32.34.47]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA28130 for ; Mon, 22 Jan 1996 20:34:09 -0800 (PST) Received: from paris.CS.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by paris.CS.Berkeley.EDU (8.6.11/8.6.9) with ESMTP id UAA12940; Mon, 22 Jan 1996 20:33:47 -0800 From: Josh MacDonald Message-Id: <199601230433.UAA12940@paris.CS.Berkeley.EDU> To: Warner Losh cc: Josh MacDonald , Wolfram Schneider , hackers@freebsd.org Subject: Re: recursive grep In-reply-to: Your message of "Mon, 22 Jan 1996 18:48:59 MST." <199601230148.SAA01369@rover.village.org> Date: Mon, 22 Jan 1996 20:33:40 -0800 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 > Oh, well anyhow _SC_ARG_MAX is set at 64k which I have found exceedingly low. How do you change this anyways? I've written a rcs front end that execs a ci command with a bunch of filenames buffered. It has to split this in order to checkin something like the emacs source tree, how annoying :) -josh