From owner-freebsd-questions Wed Dec 25 11:12:14 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 2EFB037B405 for ; Wed, 25 Dec 2002 11:12:12 -0800 (PST) Received: from dhumketu.homeunix.net (dialpool-210-214-66-160.maa.sify.net [210.214.66.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D92C43EA9 for ; Wed, 25 Dec 2002 11:12:10 -0800 (PST) (envelope-from shantanoo+fbsd@ieee.org) Received: (from shantanu@localhost) by dhumketu.homeunix.net (8.12.6/8.12.6) id gBPIV4Su000685; Thu, 26 Dec 2002 00:01:04 +0530 (IST) (envelope-from shantanoo+fbsd@ieee.org) X-Authentication-Warning: dhumketu.homeunix.net: shantanu set sender to shantanoo+fbsd@ieee.org using -f Date: Thu, 26 Dec 2002 00:01:04 +0530 From: Shantanu Mahajan To: Bill Moran Cc: freebsd-questions@freebsd.org Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Message-ID: <20021225183104.GB614@dhumketu.homeunix.net> Mail-Followup-To: Bill Moran , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Organization: Hmmm... I dunno X-OS: FreeBSD 4.7-RELEASE i386 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 [freebsd] [24/12/02 17:25 -0500]: | 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 this one find . -iname "*.html" -exec grep "__FILE__" {} \; or maybe you can use "locate" Regards, Shantanu -- Everyone is a genius. It's just that some people are too stupid to realize it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message