Add more tools

This commit is contained in:
David Tomaschik
2022-03-19 15:23:50 -07:00
parent 2217cfb47b
commit a49474fe60
3 changed files with 29 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
function duf {
function duh {
du -sk "$@" | sort -n | while read size fname; do for unit in K M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done
}