From owner-freebsd-questions Thu Nov 16 2:36:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from shalimar.net.au (shalimar.net.au [198.142.161.98]) by hub.freebsd.org (Postfix) with ESMTP id BF57937B4C5 for ; Thu, 16 Nov 2000 02:36:38 -0800 (PST) Received: from shalimar.net.au (localhost [127.0.0.1]) by shalimar.net.au (8.11.1/8.11.1) with SMTP id eAGAaRe49730; Thu, 16 Nov 2000 21:36:27 +1100 (EST) (envelope-from count@shalimar.net.au) From: Zero Sum Organization: Tobacco Chewers and Body Painters Association. Date: Thu, 16 Nov 2000 21:36:27 +1100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" To: Sebastiaan van Erk , freebsd-questions@FreeBSD.ORG References: <20001116091607.A97857@sebster.com> In-Reply-To: <20001116091607.A97857@sebster.com> Subject: Re: argument list too long MIME-Version: 1.0 Message-Id: <00111621362707.00522@shalimar.net.au> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- On Thursday 16 November 2000 19:16, Sebastiaan van Erk wrote: > Hello people, > > When I try tar a couple of files I get the following error. In fact, I get > the same error quite frequently when I use find to generate an argument > list. Is there a NICE way to work around old archaic DOS-like things > like argument lists which are too long? > > eeyore(ttypc:29:0):~> tar -czvf jsp.tgz `find . | grep 'jsp$'` > /usr/bin/tar: Argument list too long. > > I tried this on Linux, and IT has no problems with this. I always advocate > FreeBSD, but how can I explain this to people I'm trying to convert ;-) > I used to always cuss at Solaris when fmt truncated lines at 1024 characters > (kind of defeats the purpose of fmt, doesn't it). But this is almost as > bad! > Man 'xargs'. FWTW, the size of the command line buffer is a charatristic of the shell you use not the operating system. Don't be so quick to attack or you make a fool of yourself. Oh, and... The way to use tar and find is... find . -name "*.jsp" -depth | tar -czvf jsp.tgz Which won't tell you that your argument list is too long. So if you had used find and tar correctly you would not have had a problem which led to you making an inappropriate and irrelevant slur on an operating system of which you demonstrate a lack of fundamental understanding. I would heartily recommend looking reading Unix manual until you know what it's genral features are and how it works. Sorry, I've had a bad day. Geoff -- count@shalimar.net.au Nihil curo de ista tua stulta superstitione -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: cfiZ5GjNUns6Qu3vo+Wf9Wzo4nq7Vewc iQA/AwUBOhO4q/h4xz7LU/evEQJKcACg9HmAs3H3g0fyy8lnNr8WJLx3ZtMAoKdJ HWAMC1WB+ZBK+C/fMhxUrOrR =noth -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message