Summing file sizes

view story

http://www.unix.com – I was just curious about how to sum the total file size of a certain type of file. For instance: Code: $find . -name "*.aif" will print out the paths to each .aif file. Instead of printing, how could one sum the total space used by all of the aif files? Thanks! Moderator's Comments: Please use code tags (HowTos)