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 "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 $?
|
||||||
}
|
}
|
||||||
@@ -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 $?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user