Date: Thu, 24 Oct 2002 12:07:11 +0200 From: Roman Neuhauser <neuhauser@bellavista.cz> To: Peter Leftwich <Hostmaster@Video2Video.Com> Cc: FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org> Subject: Re: du, find/xargs/sort, and MP3.tar Message-ID: <20021024100711.GC29294@freepuppy.bellavista.cz> In-Reply-To: <20021023170403.P6161-100000@earl-grey.cloud9.net> References: <5lbs5lzndp.s5l@localhost.localdomain> <20021023170403.P6161-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
# Hostmaster@Video2Video.Com / 2002-10-23 17:05:48 -0400: > On 22 Oct 2002, Gary W. Swearingen wrote: > > Peter Leftwich <Hostmaster@Video2Video.Com> writes: > > > Then I thought I'd get crafty and > > > `tar tvf MP3.DONE0415021909MPT.tar > the-tarfile.out` thinking I > > > could later run things through `sort` but I am hung up on how to > > > get similar output that shows the contents of MP3/. > > tar cf - MP3/ | tar tvf - >the-mp3dir.out > > Could someone step through what this is doing? I thought you could use "-" > (stdin?) only once on a command line. the first tar sends the tarball to stdout, the second reads it from stdin. your shell connect those two together. > My question was more about using less CPU time with something simiar > to "find" or `ls -alR | sort` the output of `ls -alR` is not suitable for what you want. `tar tvf` with find(1) is your best bet. -- If you cc me or take the list(s) out completely I'll most likely ignore your message. 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?20021024100711.GC29294>