From owner-freebsd-questions Tue Dec 24 21:59:34 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 CCF0F37B401 for ; Tue, 24 Dec 2002 21:59:33 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7B3143EA9 for ; Tue, 24 Dec 2002 21:59:32 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.6/8.12.6) with ESMTP id gBP5x62J003903; Wed, 25 Dec 2002 18:59:06 +1300 (NZDT) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.6/8.12.6/Submit) id gBP5x4YD003902; Wed, 25 Dec 2002 18:59:04 +1300 (NZDT) Date: Wed, 25 Dec 2002 18:59:04 +1300 From: Jonathan Chen To: Bill Moran Cc: questions@FreeBSD.ORG Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Message-ID: <20021225055904.GA3877@grimoire.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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:25:23PM -0500, Bill Moran wrote: [...] > 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 If you quote the *.html, ie: find . -name '*.html' -print | xargs grep __FILE__ this will avoid the arg-list too long problem. -- Jonathan Chen ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message