From owner-freebsd-bugs Thu Jul 6 13:34: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from jade.chc-chimes.com (jade.chc-chimes.com [216.28.46.6]) by hub.freebsd.org (Postfix) with ESMTP id A148237B718; Thu, 6 Jul 2000 13:34:01 -0700 (PDT) (envelope-from billf@jade.chc-chimes.com) Received: by jade.chc-chimes.com (Postfix, from userid 1001) id C7BFB1C65; Thu, 6 Jul 2000 16:34:00 -0400 (EDT) Date: Thu, 6 Jul 2000 16:34:00 -0400 From: Bill Fumerola To: Paul Herman Cc: Sheldon Hearn , 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> References: <200007061450.HAA01348@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from pherman@frenchfries.net on Thu, Jul 06, 2000 at 06:09:54PM +0200 X-Operating-System: FreeBSD 3.3-STABLE i386 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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-bugs" in the body of the message