Sorts the output of 'du -h'
Perl Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
Makefile
README.md
dusort.pl

README.md

Sorts the output of du -h

My typical usage is:

du -sh * | dusort.pl

If you have a new enough set of GNU Coreutils, you can usually do without dusort like so:

du -sh * | gsort --sort=human-numeric

But if like me you're stuck somewhere in between versions, I hope you'll find dusort useful.