0README dugraph |-- 0NOTE obvious |-- 0README obvious |-- dugraph.1 man page |-- dugraph.c source file `-- nethead posting NAME dugraph - filter du output for one page graph of disk usage SYNOPSIS dugraph DESCRIPTION [from posting: drw@culdev1.UUCP (Dale Worley)] I've always wanted to get a du listing that shows how the space is being used graphically. I finally wrote a program to digest a du list- ing and print out a tree, where each directory occupies lines propor- tionally to how much space the files in it consume. To run it, type "du | dugraph" or some such. The listing for each directory starts with a blank space showing space occupied by files directly in that directory, then the subtrees for each subdirectory (in descending order of size). If the subdirectories at the bottom get so small that they occupy less than 1 line each, they are all merged into an entry "(etc.)". The entire listing always occupies 60 lines (the value of 'length'). This program has tab-width = 5. SAMPLE USAGE Use as filter only: du | dugraph For directory trees with non-ascii characters (>177), use: du | tr "\200-\377" "?" | dugraph AUTHOR From: drw@culdev1.UUCP (Dale Worley) Dugraph gives a 60-line display of a directory hierarchy. It filters the output of du. The listing allocates vertical space according to the size of a directory; small directories are lumped into "etc"; subdirectories shown similarly. Useful enough IMHO to create an alias: alias dugraph='du | tr "\200-\377" "?" | dugraph' [why tr? on macosx need to filter out high = non-std ascii characters.] John Rupley rupley@u.arizona.edu -or- jar@rupley.com 30 Calle Belleza, Tucson AZ 85716 - (520) 325-4533; fax - (520) 325-4991 Dept. Biochemistry & Molecular Biophysics, Univ. Arizona, Tucson AZ 85721