我想获取目录的总大小以及其中的所有目录。
我正在使用命令
du -h -c "$input_variable" | grep total
它打印结果和单词total。如何在没有单词的情况下获得结果total?
total
grep du
du ×1
grep ×1