NEEDED: du-like script for packrat users

Ron Ueberschaer x4399 ubi at ginger.sri.com
Sat Mar 3 14:16:15 AEST 1990


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 <biggest dir>
	> du -s */ | sort -rn | head -20
	> cd <biggest subdir>
	> 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 at unix.sri.com
  ...!{hplabs,rutgers}!sri-unix!ubi



More information about the Comp.unix.wizards mailing list