From owner-freebsd-current@FreeBSD.ORG Thu Sep 23 19:44:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DBB016A4CF for ; Thu, 23 Sep 2004 19:44:09 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29F1043D46 for ; Thu, 23 Sep 2004 19:44:09 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 22853 invoked from network); 23 Sep 2004 19:44:09 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 23 Sep 2004 19:44:08 -0000 Received: from [10.50.40.210] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i8NJi5uG011178; Thu, 23 Sep 2004 15:44:05 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Thu, 23 Sep 2004 15:44:31 -0400 User-Agent: KMail/1.6.2 References: <20040923193720.GB10928@hub.freebsd.org> In-Reply-To: <20040923193720.GB10928@hub.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409231544.32001.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Cyrille Lefevre cc: Juha Saarinen cc: David O'Brien Subject: Re: Could ARG_MAX be increased? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 19:44:09 -0000 On Thursday 23 September 2004 03:37 pm, David O'Brien wrote: > On Fri, Sep 24, 2004 at 07:33:27AM +1200, Juha Saarinen wrote: > > On Thu, 23 Sep 2004 15:46:26 +0200, Cyrille Lefevre > > > > wrote: > > > how about grep -r ou find | xargs grep ! > > > > How does that work, out of curiosity? > > > > You can use the -exec feature of 'find' other wise - > > > > find . -type f -exec grep "something" {} /dev/null \; > > Using the '-exec' feature of 'find' fork+exec for *every* file found. > Using xargs reduces the number of fork+exec by the number of filenames > that fit on the command line. So it runs much quicker. 'grep -r .' even quicker. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org