optional path for treesize
This commit is contained in:
parent
60445a7fe1
commit
733ef9e412
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
du -k --max-depth=1 | sort -nr | awk '
|
||||
dir=${1:-.}
|
||||
du -k --max-depth=1 $dir | sort -nr | awk '
|
||||
BEGIN {
|
||||
split("KB,MB,GB,TB", Units, ",");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue