From owner-freebsd-current@FreeBSD.ORG Thu Sep 23 19:35:05 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 C14A116A4CE for ; Thu, 23 Sep 2004 19:35:05 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AF6743D1F for ; Thu, 23 Sep 2004 19:35:05 +0000 (GMT) (envelope-from juhasaarinen@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so528213rnl for ; Thu, 23 Sep 2004 12:34:30 -0700 (PDT) Received: by 10.38.82.34 with SMTP id f34mr4130266rnb; Thu, 23 Sep 2004 12:33:28 -0700 (PDT) Received: by 10.38.73.29 with HTTP; Thu, 23 Sep 2004 12:33:27 -0700 (PDT) Message-ID: Date: Fri, 24 Sep 2004 07:33:27 +1200 From: Juha Saarinen To: Cyrille Lefevre In-Reply-To: <009301c4a173$d468de90$7890a8c0@gits.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <009301c4a173$d468de90$7890a8c0@gits.invalid> cc: freebsd-current@freebsd.org Subject: Re: Could ARG_MAX be increased? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Juha Saarinen 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:35:05 -0000 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 \; -- the /dev/null is, according to a friend, "to provide grep with more than one input file, so that includes the file name in any matches. Didn't use it before. Add -depth or -maxdepth according to how many directories you want to trawl through. -- Juha