ファイルサイズ(容量)の合計

ls -l /var/log/maillog* | awk '{ total += $5 }; END { print total/1024/1024 "M" }'

http://blogcdn.rutake.com/techmemo/2017/04/19/linux-lsで特定ファイルサイズの合計値を出す/

find /usr/local/pgsql/archive/ -type f \
 -newermt '2019/3/27 11:00:00' -and ! -newermt '2019/3/27 13:00:00' \
 | xargs ls -l | awk '{ total += $5 }; END { print total/1024/1024 "M" }'

11:00〜13:00に更新されたファイルの合計

awk で変数の末尾1文字を削除
awk の変数の文字列の末尾1文字を削除する。

sub(/.$/,"",$1);

$1の中が「85%」の場合、85となる。
awk で変数の末尾1文字を削除 : コンピュータ操作覚え書き