From owner-freebsd-questions Tue Dec 24 14:42:41 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 61C6337B401 for ; Tue, 24 Dec 2002 14:42:40 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC82643ED1 for ; Tue, 24 Dec 2002 14:42:39 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (12-231-115-57.client.attbi.com[12.231.115.57]) by sccrmhc03.attbi.com (sccrmhc03) with SMTP id <2002122422423800300lpmrpe>; Tue, 24 Dec 2002 22:42:39 +0000 Message-ID: <3E08E2DE.3080102@mac.com> Date: Tue, 24 Dec 2002 14:42:38 -0800 From: paul beard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bill Moran Cc: questions@FreeBSD.ORG Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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. to get a file coun, 'ls | wc' might work. -- Paul Beard: seeking UNIX/internet engineering work 8040 27th Ave NE Seattle WA 98115 / 206 529 8400 Love and scandal are the best sweeteners of tea. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message