how do i search for 3 different types of file at once?

Asked by el_gallo_azul

Mu music collection is on an external hard drive. It contains OGG, MP3 and WMA files. I want to know how many files of these types exist within one folder (as root folder, and looking in all the subfolders of this folder), and compare this to the number of music files stated by Rhythmbox, so that I can see if it can read them all.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Solved by:
el_gallo_azul
Solved:
Last query:
Last reply:
Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#1

My music collection is on an external hard drive. It contains OGG, MP3 and WMA files. I want to know how many files of these types exist within one folder (as root folder, and looking in all the subfolders of this folder), and compare this to the number of music files stated by Rhythmbox, so that I can see if it can read them all.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

echo "MP3s ="; sudo find . -iname "*.mp3" | wl -c; echo "OGGs ="; sudo find . -iname "*.ogg" | wl -cecho "WMAs ="; sudo find . -iname "*.wma" | wl -c

Should do it, run the command from the folder at the start of your collection

Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#3

Thanks. I tried it but wl isn't recognised. I've done it anyway, using Nautilus browser, searching for "." from the start of the collection and sorting them by type.