From owner-freebsd-questions Wed Dec 25 15:12: 5 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 BE85737B401 for ; Wed, 25 Dec 2002 15:12:04 -0800 (PST) Received: from hotmail.com (f32.law15.hotmail.com [64.4.23.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E34F43EB2 for ; Wed, 25 Dec 2002 15:12:04 -0800 (PST) (envelope-from bill_moran2@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 Dec 2002 15:07:35 -0800 Received: from 66.132.12.15 by lw15fd.law15.hotmail.msn.com with HTTP; Wed, 25 Dec 2002 23:07:35 GMT X-Originating-IP: [66.132.12.15] From: "Bill Moran" To: swear@attbi.com Cc: questions@freebsd.org Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Date: Wed, 25 Dec 2002 18:07:35 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Dec 2002 23:07:35.0449 (UTC) FILETIME=[69645890:01C2AC6A] 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: swear@attbi.com (Gary W. Swearingen) > > > > 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. Very true. Much like Greg pointed out, I'm using the correct commands, I just need to start using them correctly ;) -Bill _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message