From owner-freebsd-questions Tue Dec 24 18:48:37 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 2DBCA37B401 for ; Tue, 24 Dec 2002 18:48:36 -0800 (PST) Received: from post-21.mail.nl.demon.net (post-21.mail.nl.demon.net [194.159.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C33743EA9 for ; Tue, 24 Dec 2002 18:48:35 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18R1b0-0004vc-00 for questions@FreeBSD.ORG; Wed, 25 Dec 2002 02:48:34 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 003311640 for ; Wed, 25 Dec 2002 03:48:32 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id D73BCEC5 for ; Wed, 25 Dec 2002 03:48:22 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 7DE24225D9; Wed, 25 Dec 2002 03:48:23 +0100 (CET) Date: Wed, 25 Dec 2002 03:48:23 +0100 From: Cliff Sarginson To: questions@FreeBSD.ORG Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Message-ID: <20021225024823.GD31992@raggedclown.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-Virus-Scanned: by AMaViS 0.3.12pre8 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 On Tue, Dec 24, 2002 at 05:52:15PM -0500, Bill Moran wrote: > >From: paul beard > > > >Bill Moran wrote: > >>d/l the entire php documentation as individual html files. > >>This equates to a LOT of files in a single directory (how can > >>I get a count of this?) > >>Anyway, I'm trying to find the docs on some features that > >>the www.php.net's search isn't really helping on (searching > >>for __FILE__ doesn't search for __FILE__ ... it searches for > >>file, and there's too many results) so I try: > >>grep __FILE__ *.html > >>and I get the error: > >>-bash: /usr/bin/grep: Argument list too long > >>Is this a shortcoming of bash, grep or FreeBSD? I'm assuming > >>it's not grep, as the command: > >>find . -name *.html -print | xargs grep __FILE__ > >>yeilds: > >>-bash: /usr/bin/find: Argument list too long > > > >try grep "__FILE__" *.html. > > Makes no difference, I get the same error. > > >to get a file coun, 'ls | wc' might work. > > That helped! I've got >3000 files in that You should avoid having so many files in a single directory. It's inefficient and somewhat defeats one of the multiple advantages of a tree structured file system. > directory. > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. > http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= > http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message