From owner-freebsd-questions Wed Dec 25 14:41:49 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 9D65C37B401 for ; Wed, 25 Dec 2002 14:41:48 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 084F343EC5 for ; Wed, 25 Dec 2002 14:41:48 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <2002122522414600300lqc97e>; Wed, 25 Dec 2002 22:41:47 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.5) with ESMTP id gBPMfOmG034916; Wed, 25 Dec 2002 14:41:24 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.5/Submit) id gBPMfJuL034913; Wed, 25 Dec 2002 14:41:19 -0800 (PST) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: "Bill Moran" Cc: questions@freebsd.org Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? References: From: swear@attbi.com (Gary W. Swearingen) Date: 25 Dec 2002 14:41:18 -0800 In-Reply-To: Message-ID: Lines: 7 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 > > find . -name '*.html' -print | xargs grep __FILE__ One might as well get in the habit of using the more robust find . -name '*.html' -print0 | xargs -0 grep __FILE__ Otherwise, the "-print" isn't needed at all; it's a default. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message