Browse Source

Create bash utils aliases. Include dus to show sorted dize of files/paths

main
gabriel becker 1 year ago
parent
commit
54d88962c0
  1. 3
      bash_utils

3
bash_utils

@ -0,0 +1,3 @@
dus () {
du -h ${1} -d ${2:=1} | sed 's/\([[:digit:]]\)\t/\1B\t/' | sed 's/\(.\t\)/\t\1/' | sed 's/G\t/Z\t/' | sort -n -k 2d,2 -k 1n,1 | sed 's/Z\t/G\t/'
}
Loading…
Cancel
Save