From owner-freebsd-questions Tue Oct 22 21: 6: 1 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 190D237B401 for ; Tue, 22 Oct 2002 21:06:00 -0700 (PDT) Received: from smtp2.san.rr.com (smtp2.san.rr.com [24.25.195.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99D7F43E3B for ; Tue, 22 Oct 2002 21:05:59 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from 24-161-168-112.san.rr.com (24-161-168-112.san.rr.com [24.161.168.112]) by smtp2.san.rr.com (8.11.4/8.11.4) with ESMTP id g9N45wa14244 for ; Tue, 22 Oct 2002 21:05:59 -0700 (PDT) Date: Tue, 22 Oct 2002 21:06:52 -0700 (PDT) From: Peter Leftwich X-X-Sender: root@dhcp-407-32.san.rr.com To: FreeBSD Questions LIST Subject: du, find/xargs/sort, and MP3.tar Message-ID: <20021022205849.O1718-100000@dhcp-407-32.san.rr.com> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Here's a doozy for you. I'm trying to compare a directory called MP3/ with a huge file called MP3.DONE0415021909MPT.tar -- the idea being to make sure the contents are similar (I've touched new files in the MP3/ directory since untarring, so they won't be exactly the same...) I tried some commands along the lines of these: # du -hs MP3/ 1.6G MP3/ # du -hs MP3.DONE0415021909MPT.tar 1.2G MP3.DONE0415021909MPT.tar Erg, wait this proves nothing; I'd have to untar and THEN du -hs :( 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/. # find MP3/ -type f | wc -l OR? # find MP3/ -type f -exec ls -al {}\; | more OR? # find MP3/ -type f -print | xargs or something like that | sort... Could one of you /\/\aster$ work some unixiacal magic on my task? =^) It soothes my soul to know you care. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message