1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 732
/ 3 Years ago, sun, october 24, 2021, 10:59:20
find_totalusage()
{
local totalusedsize=0
for dirname in $dirnamelist
do
dirsize=$(find_dir_size "$dirname")
totalusedsize=$(( $totalusedsize + $dirsize ))
done
echo $totalusedsize
}
size=$(find_totalusage)
Any one help me find the error ?
More From » bash