tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Gary Beckett <gbeckett () myra ! com>
To: tru64-unix-managers
Subject: Summary: How to calculate the size of a tar archive on tape
Date: Thu, 14 Dec 2000 18:43:44 +0000	[thread overview]
Message-ID: <97681946829132.tru64-unix-managers.marc@archive.invalid> (raw)

[-- 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--

                 reply	other threads:[~2000-12-14 18:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox