Find total filesize of all WAV files in a directory using command line tools

Use this command to find the total file size of all .wav files (including .WAV files)

example.sh
find . -name "*.wav" -or -name "*.WAV" -exec du -ch {} + | tail -n 1

Example output:

example.txt
6,7G    total

 


Check out similar posts by category: Linux