du -sk 2 -h
A script which converts the output of
du -sk into
du -h.
What's the point? Well, this is:
# du -sk * | sort -nr | du-kb2h
385.6 MB snipsnap
46.2 MB dave
108.0 KB dev
By inserting the
sort -nr inbetween the
du and the output formattng, you can have both a numerically sorted and human-readable output.