From owner-freebsd-questions Wed Dec 25 13:44:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DF7937B401 for ; Wed, 25 Dec 2002 13:44:47 -0800 (PST) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0AD143EDC for ; Wed, 25 Dec 2002 13:44:33 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-029dcwashp0260.dialsprint.net ([65.177.105.6] helo=moo.holy.cow) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18RJKF-0002mK-00; Wed, 25 Dec 2002 13:44:28 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 79AD7B584; Wed, 25 Dec 2002 16:47:20 -0500 (EST) Date: Wed, 25 Dec 2002 16:47:20 -0500 From: parv To: Bill Moran Cc: shantanoo+fbsd@ieee.org, freebsd-questions@freebsd.org Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Message-ID: <20021225214719.GA7002@moo.holy.cow> Mail-Followup-To: Bill Moran , shantanoo+fbsd@ieee.org, freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG in message , wrote Bill Moran thusly... > > >From: Shantanu Mahajan > the wildcard, thus the limit doesn't affect the command. > > >or maybe you can use "locate" > > Hadn't thought to try that, although I don't know how it would > work. RTFM? locate(1)? given a path name, it lists the file matching that pattern. man page state that it takes a "pattern". in practice i find its capabilities are rather restricted; using e?grep is much better... locate foo | grep 'foo$' - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message