* Summary: How to calculate the size of a tar archive on tape
@ 2000-12-14 18:43 Gary Beckett
0 siblings, 0 replies; only message in thread
From: Gary Beckett @ 2000-12-14 18:43 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--------------284126E23061CCC6CC00784A", Size: 1441 bytes --]
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 <tapedevice> | awk '{s+=$3};END{print s}'
*tar -tvf <tapedevice> | awk '
BEGIN {sum = 0}
{sum = sum + $3}
END {print sum}'
* dd if=<tapedevice> of=/dev/null bs=1k
* dd if=<tapedevice> of=/dev/null bs=10k
* tcopy <tapedevice> (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--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-14 18:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-14 18:43 Summary: How to calculate the size of a tar archive on tape Gary Beckett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox