* Summary: T64 command to add #'s...
@ 2001-05-10 18:39 George Gallen
0 siblings, 0 replies; only message in thread
From: George Gallen @ 2001-05-10 18:39 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C0D980.9508E050", Size: 6889 bytes --]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0D980.9508E050
Content-Type: text/plain;
charset="iso-8859-1"
awk was suggested as the easiest way using:
cat filename | |awk '{sum=sum+ $1} {count=count+1} END {print "Total Files
" count " | Total Blocks " sum}'
Unfortunatly, for me, I think there was a non - numeric piece of data in the
file, which caused
awk to error out.
After having a DBMS program sift through it (showed lots of non-numeric
data) guess my initial awking
was successfull (and the columns varied in the tar report).
Thanks
George
-----Original Message-----
From: George Gallen [mailto:ggallen@slackinc.com]
Sent: Thursday, May 10, 2001 1:46 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: T64 command to add #'s...
I'm trying to get a quick idea of how much data is being backed up to tape
before
the tape drive quits and asks for "reel#2". (Since it's on a cron job, it
quits).
We would prefer not to go to two drives at present, but that's not the
question.
What I did was awked out from the tar result file, all the "# Blocks"
reported
so I have a file of just #'s line after line.
ie'
1
5
0
12
(except it goes on for a couple thousand #'s)
Is there a command in T64 that will add up these #'s?
I realize these are rounded numbers, but it will let me know apx how much
the
drive is backup up on that tape.
Thanks
George
George Gallen
Senior Programmer/Analyst
Accounting/Data Division
ggallen@slackinc.com
ph:856.848.1000 Ext 220
SLACK Incorporated - An innovative information, education and management
company
http://www.slackinc.com <http://www.slackinc.com>
------_=_NextPart_001_01C0D980.9508E050
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>T64 command to add #'s...</TITLE>
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990482918-10052001>awk
was suggested as the easiest way using:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990482918-10052001><FONT
face="Times New Roman" color=#000000 size=3>cat </FONT><SPAN
class=820170718-10052001><FONT face=Arial color=#0000ff size=2> filename |
</FONT></SPAN><FONT face="Times New Roman" color=#000000 size=3>|awk '{sum=sum+
$1} {count=count+1} END {print "Total Files " count " | Total Blocks "
sum}'</FONT></SPAN></FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=990482918-10052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001>Unfortunatly, for me, I think there was a non - numeric
piece of data in the file, which caused</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990482918-10052001>awk to
error out.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990482918-10052001>After
having a DBMS program sift through it (showed lots of non-numeric data) guess my
initial awking</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=990482918-10052001>was
successfull (and the columns varied in the tar report).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001>George</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=990482918-10052001></SPAN></FONT> </DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Original Message-----<BR><B>From:</B> George Gallen
[mailto:ggallen@slackinc.com]<BR><B>Sent:</B> Thursday, May 10, 2001 1:46
PM<BR><B>To:</B> 'tru64-unix-managers@ornl.gov'<BR><B>Subject:</B> T64 command
to add #'s...<BR><BR></FONT></DIV>
<P><FONT face=Arial size=2>I'm trying to get a quick idea of how much data is
being backed up to tape before</FONT> <BR><FONT face=Arial size=2>the tape
drive quits and asks for "reel#2". (Since it's on a cron job, it
quits).</FONT> </P>
<P><FONT face=Arial size=2>We would prefer not to go to two drives at present,
but that's not the question.</FONT> </P>
<P><FONT face=Arial size=2>What I did was awked out from the tar result file,
all the "# Blocks" reported</FONT> <BR><FONT face=Arial size=2>so I have a
file of just #'s line after line.</FONT> </P>
<P><FONT face=Arial size=2>ie'</FONT> </P>
<P><FONT face=Arial size=2>1</FONT> <BR><FONT face=Arial size=2>5</FONT>
<BR><FONT face=Arial size=2>0</FONT> <BR><FONT face=Arial size=2>12</FONT>
<BR><FONT face=Arial size=2>(except it goes on for a couple thousand
#'s)</FONT> </P>
<P><FONT face=Arial size=2>Is there a command in T64 that will add up these
#'s?</FONT> </P>
<P><FONT face=Arial size=2>I realize these are rounded numbers, but it will
let me know apx how much the</FONT> <BR><FONT face=Arial size=2>drive is
backup up on that tape.</FONT> </P>
<P><FONT face=Arial size=2>Thanks</FONT> <BR><FONT face=Arial
size=2>George</FONT> </P>
<P><B><FONT face="Times New Roman" color=#800000 size=2>George
Gallen</FONT></B> <BR><FONT face="Times New Roman" color=#800000 size=2>Senior
Programmer/Analyst</FONT> <BR><FONT face="Times New Roman" color=#800000
size=2>Accounting/Data Division</FONT> <BR><FONT face="Times New Roman"
color=#800000 size=2>ggallen@slackinc.com</FONT> <BR><FONT
face="Times New Roman" color=#800000 size=2>ph:856.848.1000 Ext 220</FONT>
</P>
<P><B><FONT face="Times New Roman" color=#800000 size=2>SLACK
Incorporated</FONT></B><FONT face="Times New Roman" color=#800000 size=2> -<I>
An innovative information, education and management company</I></FONT>
<BR><U><FONT face="Times New Roman" color=#0000ff size=2><A target=_blank
href="http://www.slackinc.com">http://www.slackinc.com</A></FONT></U>
</P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C0D980.9508E050--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-10 18:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-10 18:39 Summary: T64 command to add #'s George Gallen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox