Date: Thu, 6 Jul 2000 16:34:00 -0400 From: Bill Fumerola <billf@chimesnet.com> To: Paul Herman <pherman@frenchfries.net> Cc: Sheldon Hearn <sheldonh@uunet.co.za>, freebsd-bugs@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: bin/19635: add -c for grand total to df(1), like du(1) does Message-ID: <20000706163400.T4034@jade.chc-chimes.com> In-Reply-To: <Pine.BSF.4.21.0007061721070.4627-100000@bagabeedaboo.security.at12.de>; from pherman@frenchfries.net on Thu, Jul 06, 2000 at 06:09:54PM %2B0200 References: <200007061450.HAA01348@freefall.freebsd.org> <Pine.BSF.4.21.0007061721070.4627-100000@bagabeedaboo.security.at12.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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: billf@chimesnet.com / billf@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000706163400.T4034>