/ Published in: Awk

URL: http://till.klampaeckel.de/blog/archives/114-Find-space-hogs-and-prettify-output-using-AWK.html
Expand |
Embed | Plain Text
du --max-depth 1|sort -n|awk '{ $1=$1/1024; printf "%.2f MB: %s\n",$1,$2 }'
You need to login to post a comment.