From owner-freebsd-questions Tue Dec 24 14:54:38 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 3AEF537B401 for ; Tue, 24 Dec 2002 14:54:37 -0800 (PST) Received: from hotmail.com (f116.law15.hotmail.com [64.4.23.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA50A43EA9 for ; Tue, 24 Dec 2002 14:54:36 -0800 (PST) (envelope-from bill_moran2@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 24 Dec 2002 14:52:16 -0800 Received: from 66.132.12.15 by lw15fd.law15.hotmail.msn.com with HTTP; Tue, 24 Dec 2002 22:52:15 GMT X-Originating-IP: [66.132.12.15] From: "Bill Moran" To: paulbeard@mac.com Cc: questions@FreeBSD.ORG Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Date: Tue, 24 Dec 2002 17:52:15 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Dec 2002 22:52:16.0155 (UTC) FILETIME=[1B0976B0:01C2AB9F] 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 >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 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