Check the sum of file size from a list of files (ls)

ls -FaGlh a.txt b.txt | awk ‘{ print; total += $4 }; END { print “total size: “,total }’

total size: 205.7

http://stackoverflow.com/questions/6644722/check-total-file-size-of-a-specific-directory-for-a-specific-user