fastdu help was missing count -c
This commit is contained in:
@@ -5,6 +5,7 @@ function helpexit() {
|
||||
echo "Returns only the size as number"
|
||||
echo " -h Human readable units"
|
||||
echo " -s Summary mode, otherwise each argument folder calculated separate"
|
||||
echo " -c Count files instead of summarizing sizes"
|
||||
echo " --help This help"
|
||||
exit
|
||||
}
|
||||
@@ -22,7 +23,7 @@ function filesize() {
|
||||
for(i=7;y < 1;i--)
|
||||
y = x / (2^(10*i))
|
||||
str=int(y*10)/10 " " type[i+2]
|
||||
if (x==0) { str = "0 B" }
|
||||
if (i==-1) { str = x " B" }
|
||||
print str
|
||||
}' || return $?
|
||||
}
|
||||
@@ -39,8 +40,7 @@ function siprefix() {
|
||||
for(i=7;y < 1;i--)
|
||||
y = x / (10^(3*i))
|
||||
str=int(y*10)/10 " " type[i+2]
|
||||
if (x==0) { str = "0" }
|
||||
if (i==-1) { str = x }
|
||||
if (i==-1) { str = x " " }
|
||||
print str
|
||||
}' || return $?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user