From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97681946829132.tru64-unix-managers.marc@archive.invalid> From: Gary Beckett Date: Thu, 14 Dec 2000 18:43:44 +0000 To: tru64-unix-managers Subject: Summary: How to calculate the size of a tar archive on tape X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97681946829132 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------284126E23061CCC6CC00784A" This is a multi-part message in MIME format. --------------284126E23061CCC6CC00784A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Well once again this list has come through for me. Thanks to all who replied to my message. There was 3 different approaches from 11 different people. The dd command was used in various formats. The suggestions are as follows: * tar -tvf | awk '{s+=$3};END{print s}' *tar -tvf | awk ' BEGIN {sum = 0} {sum = sum + $3} END {print sum}' * dd if= of=/dev/null bs=1k * dd if= of=/dev/null bs=10k * tcopy (Since I've never used the tcopy command before this is interesting but as suggested by the originator probably won't give exactly what I needed, I'll have to play with it to see the output) Gary Beckett Myra Systems Corp. gbeckett@myra.com --------------284126E23061CCC6CC00784A Content-Type: text/x-vcard; charset=us-ascii; name="gbeckett.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Gary Beckett Content-Disposition: attachment; filename="gbeckett.vcf" begin:vcard n:Beckett;Gary tel;work:250 356 7989 x-mozilla-html:FALSE url:http://www.myra.com org:Myra Systems Corp;UNIX Group adr:;;488A Bay St.;Victoria;BC;V8T 5H2;Canada version:2.1 email;internet:gbeckett@myra.com title:Systems Analyst fn:Gary Beckett end:vcard --------------284126E23061CCC6CC00784A--