ablog

不器用で落着きのない技術者のメモ

特定の拡張子のファイルの合計サイズを調べる

man で調べてみると、

$ man du

...

       -c, --total
              produce a grand total

-c というオプションがあるらしいので試してみると、

$ du -c *.txt
224     1.txt
20      2.txt
244     total

でた。