thought this might help someone, wrote it whilst trying to work out
where all my harddrive space had gone...

$ du -bax | sort -rn +0 | less

it'll display all your files and directories, sorted with the biggest
first (which'll always be . so ignore the top line). It only searches the
current drive (otherwise it'd go off down all your NFS links and dos mounted
partitions ( = slow)) just remove the x from du if you want it to do that.

it's probably really inefficiant and will probably give you a load average
of 2, but never mind :)

go on... show me a perl program that does the same, and only shows the
bigges and smallest FILE :)

-- 
+++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++
[EMAIL PROTECTED]                    http://x-map.home.ml.org

Reply via email to