... 大小加總的話可以使用awk 來實現. 例如 ls -l /var/log/maillog* | awk '{ SUM += $5 } END { print SUM/1024/1024 }' 計算出來的單位是MB.
確定! 回上一頁