On Thu, Jul 06, 2000 at 06:09:54PM +0200, Paul Herman wrote:
> Naturally, "no reason not to put it in" is most certainly *not* a
> reason to put it in. I would like to hear some to sway me one way or
> the other.
>
> Spoiler:
> df /disk1 /disk2 | \
> awk '/^\// {t+=$2;u+=$3;} END { print "Total:", t,u,t-u,u*100/t; }'
>
> ...and "slaping 'df -c' into a pie chart" usually intails running it
> through some parser like this, anyway... or?
[hawk-billf] /home/billf > du -s /usr/src/sys/i386 /usr/ports/math | \
awk '{t+=$1; print $0} END { print t, "\ttotal" }'
6282 /usr/src/sys/i386
15288 /usr/ports/math
21570 total
[hawk-billf] /home/billf > du -cs /usr/src/sys/i386 /usr/ports/math
6282 /usr/src/sys/i386
15288 /usr/ports/math
21570 total
Precedence.
--
Bill Fumerola - Network Architect / Computer Horizons Corp - CHIMES
e-mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message