Re: question for script whizzes

From: Taylor, David (DTaylor@WBMI.COM)
Date: Mon Aug 12 2002 - 18:21:03 EDT


How about this:

df -Ik | sed '1d' | awk '{sum += $col} END {print sum}' col=4

HTH

David

-----Original Message-----
From: Miller, Dave [mailto:Dave.Miller@BHS.ORG]
Sent: Monday, August 12, 2002 3:26 PM
To: aix-l@Princeton.EDU
Subject: question for script whizzes

Is there an easy way to take the output of this
df -Ik | awk {'print $4 '}

($4 is the free space from df command), and add the resulting numbers
together with dc or bc, in
a script?

thanks.

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:08 EDT