From owner-freebsd-questions Thu Oct 24 3: 7:22 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 D825537B401 for ; Thu, 24 Oct 2002 03:07:20 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id C24A643E3B for ; Thu, 24 Oct 2002 03:07:18 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 584 invoked from network); 24 Oct 2002 10:07:12 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 24 Oct 2002 10:07:12 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 863AA2FDAB2; Thu, 24 Oct 2002 12:07:11 +0200 (CEST) Date: Thu, 24 Oct 2002 12:07:11 +0200 From: Roman Neuhauser To: Peter Leftwich Cc: FreeBSD LIST Subject: Re: du, find/xargs/sort, and MP3.tar Message-ID: <20021024100711.GC29294@freepuppy.bellavista.cz> Mail-Followup-To: Peter Leftwich , FreeBSD LIST References: <5lbs5lzndp.s5l@localhost.localdomain> <20021023170403.P6161-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021023170403.P6161-100000@earl-grey.cloud9.net> User-Agent: Mutt/1.5.1i 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 # Hostmaster@Video2Video.Com / 2002-10-23 17:05:48 -0400: > On 22 Oct 2002, Gary W. Swearingen wrote: > > Peter Leftwich 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