Date: Thu, 16 Nov 2000 21:36:27 +1100 From: Zero Sum <count@shalimar.net.au> To: Sebastiaan van Erk <sebster@sebster.com>, freebsd-questions@FreeBSD.ORG Subject: Re: argument list too long Message-ID: <00111621362707.00522@shalimar.net.au> In-Reply-To: <20001116091607.A97857@sebster.com> References: <20001116091607.A97857@sebster.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00111621362707.00522>