Date: Thu, 16 Nov 2000 15:26:21 +0300 From: Igor Robul <igor@raduga.dyndns.org> To: freebsd-questions@FreeBSD.ORG Subject: Re: argument list too long Message-ID: <20001116152621.A22968@linux.rainbow> In-Reply-To: <20001116091607.A97857@sebster.com>; from sebster@sebster.com on Thu, Nov 16, 2000 at 09:16:07AM %2B0100 References: <20001116091607.A97857@sebster.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, On Thu, Nov 16, 2000 at 09:16:07AM +0100, Sebastiaan van Erk wrote: > eeyore(ttypc:29:0):~> tar -czvf jsp.tgz `find . | grep 'jsp$'` > /usr/bin/tar: Argument list too long. I think that tar is not very good for this even on linux: Oh, devil, it even has same error: /home/igor# uname -a Linux linux.rainbow 2.2.14-plus-SMP #9 SMP Чтв Мар 30 15:50:07 MSD 2000 i686 unknown /home/igor# time tar czf test.tgz `find /usr/local ` /usr/bin/tar: Argument list too long. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 0.260u 0.130s 0:03.73 10.4% 0+0k 0+0io 25pf+0w But using cpio, I prefer tar, but sh-2.02# time find /usr/local | cpio -o 2> /dev/null | gzip >test.cpio.gz real 1m16.543s user 1m3.260s sys 0m4.910s It works :-) -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 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?20001116152621.A22968>