Sort Directories by Size (Human Readable)


/ Published in: Awk
Save to your folder(s)



Copy this code and paste it in your HTML
  1. du --max-depth 1|sort -n|awk '{ $1=$1/1024; printf "%.2f MB: %s\n",$1,$2 }'

URL: http://till.klampaeckel.de/blog/archives/114-Find-space-hogs-and-prettify-output-using-AWK.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.