Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!cornell!uw-beaver!Teknowledge.COM!unix!ginger.sri.com!ubi From: ubi@ginger.sri.com (Ron Ueberschaer x4399) Newsgroups: comp.unix.wizards Subject: NEEDED: du-like script for packrat users Message-ID: <9733@unix.SRI.COM> Date: 3 Mar 90 03:16:15 GMT Sender: news@unix.SRI.COM Reply-To: ubi@ginger.sri.com (Ron Ueberschaer x4399) Distribution: na Organization: SRI International Lines: 29 I'll admit it--I'm a packrat. I'm also the local radar imaging guru, so I've got a lot of freeware sources, data files, images, etc. cluttering up our disks. When it comes time to free up space, I realize that, according to someone's famous law, 80-90% of my disk usage is in 10-20% of the files. I usually resort to something like: > cd > du -s */ | sort -rn | head -20 > cd > du -s */ | sort -rn | head -20 > cd > ls -sl | sort -rn | head -20 to get to the big non-directory files that I might decide I can do without. This is time-consuming and often confusing (du doesn't show which files are directories; ls doesn't show the grand-total for directories). What would be really nice is some sort of report script called, say, "bigoldfiles", which would do all this automatically. Perhaps something using du and find. I remember a program called "byteyears" which seemed pretty useful... Is there anything better? Well how 'bout it, wizards? --Ron Ueberschaer SRI International ubi@unix.sri.com ...!{hplabs,rutgers}!sri-unix!ubi