Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!lsuc!dave From: dave@lsuc.UUCP Newsgroups: alt.sources Subject: Re: Short 'n' dirty file space totaller Message-ID: <2074@lsuc.UUCP> Date: Mon, 12-Oct-87 07:17:11 EDT Article-I.D.: lsuc.2074 Posted: Mon Oct 12 07:17:11 1987 Date-Received: Tue, 13-Oct-87 01:16:38 EDT References: <239@ddsw1.UUCP> <8738@utzoo.UUCP> Reply-To: dave@lsuc.UUCP (David Sherman) Organization: Law Society of Upper Canada, Toronto Lines: 16 Summary: yet simpler In article <8738@utzoo.UUCP> henry@utzoo.UUCP (Henry Spencer) writes: >> Here's a real short, cheap-n-dirty disk usage tracker. [40 lines of C] > >Um, did you consider: > > du -s `awk -F: '{print $6}' /etc/passwd` | sed 's;.*/;;' Even simpler, for most systems, will be something like du -s /u/* (or /u?/* or whatever happens to match the directory/ies where your users reside). David Sherman -- { uunet!mnetor pyramid!utai decvax!utcsri ihnp4!utzoo } !lsuc!dave Pronounce it ell-ess-you-see, please...