From owner-freebsd-current@FreeBSD.ORG Fri Sep 24 05:28:41 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 6D05816A4CE for ; Fri, 24 Sep 2004 05:28:41 +0000 (GMT) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [80.86.187.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AA7943D4C for ; Fri, 24 Sep 2004 05:28:40 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 82532 invoked from network); 24 Sep 2004 05:28:11 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (80.86.187.43) by avocado.salatschuessel.net with SMTP; 24 Sep 2004 05:28:11 -0000 Date: Fri, 24 Sep 2004 07:28:34 +0200 From: Oliver Lehmann To: Juha Saarinen Message-Id: <20040924072834.06395511.lehmann@ans-netz.de> In-Reply-To: References: <009301c4a173$d468de90$7890a8c0@gits.invalid> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: root@gits.dyndns.org 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 05:28:41 -0000 Juha Saarinen wrote: > 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. FreeBSD's grep knows -H: olivleh1@kartoffel olivleh1> grep -H 1 lala lala:1 -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/