Last Updated: February 25, 2016
·
511
· mweppler

Summing the size of a list of files via cli

ls -ls *.png | awk '{ sum += $6 } END { printf "size: %.2f MB\n", sum/1048576 }'

# size: 6.01 MB