Today I was trying to figure out the total amount of space a type of file was taking up on one of our servers so I could free up some space. The result below will give you the total number of bytes.

ls -FaGl "mysql-bin" | awk '{ total += $4; print }; END { print total }';