fastdu help was missing count -c

This commit is contained in:
q
2018-08-12 15:33:38 +03:00
parent f2a148f353
commit bcb605a9ca

View File

@@ -5,6 +5,7 @@ function helpexit() {
echo "Returns only the size as number" echo "Returns only the size as number"
echo " -h Human readable units" echo " -h Human readable units"
echo " -s Summary mode, otherwise each argument folder calculated separate" echo " -s Summary mode, otherwise each argument folder calculated separate"
echo " -c Count files instead of summarizing sizes"
echo " --help This help" echo " --help This help"
exit exit
} }
@@ -22,7 +23,7 @@ function filesize() {
for(i=7;y < 1;i--) for(i=7;y < 1;i--)
y = x / (2^(10*i)) y = x / (2^(10*i))
str=int(y*10)/10 " " type[i+2] str=int(y*10)/10 " " type[i+2]
if (x==0) { str = "0 B" } if (i==-1) { str = x " B" }
print str print str
}' || return $? }' || return $?
} }
@@ -30,7 +31,7 @@ function siprefix() {
# Return a SI prefixed string from integer # Return a SI prefixed string from integer
[ "$1" = "0" ] && { [ "$1" = "0" ] && {
echo "0" echo "0 "
return 0 return 0
} }
@@ -39,8 +40,7 @@ function siprefix() {
for(i=7;y < 1;i--) for(i=7;y < 1;i--)
y = x / (10^(3*i)) y = x / (10^(3*i))
str=int(y*10)/10 " " type[i+2] 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 print str
}' || return $? }' || return $?
} }