[KLUG Members] Find command fails when searching only for mp3s

yvh11a yvh11a at gmail.com
Mon Mar 27 00:14:20 EST 2006


Good evening all,

I have a script that searches my home folder for music files and writes 
the results into a temp file which it then uses as an mplayer playlist.  
When mplayer exits, the temp file is removed, nice and slick.

I noticed that for the amount of music I have, I was hearing the same 
few songs far too many times in any given time period.  Checking the 
temp file showed that Ogg Vorbis files were found, as were asf and wma, 
but no mp3.  I tried some test finds, and discovered that find wasn't 
locating any files of type mp3:

[steve at rosie ~]$ ls ~/Desktop/aFewFiles/
1.mp3  2.mp3  3.mp3  4.ogg

[steve at rosie ~]$ find ~/Desktop/aFewFiles/ -name *.ogg
/home/steve/Desktop/aFewFiles/4.ogg

[steve at rosie ~]$ find ~/Desktop/aFewFiles/ -name *.mp3
[steve at rosie ~]$

[steve at rosie ~]$ find ~/Desktop/aFewFiles/
/home/steve/Desktop/aFewFiles/
/home/steve/Desktop/aFewFiles/3.mp3
/home/steve/Desktop/aFewFiles/4.ogg
/home/steve/Desktop/aFewFiles/1.mp3
/home/steve/Desktop/aFewFiles/2.mp3
[steve at rosie ~]$  

Does anyone know why find doesn't want to locate files of type only mp3?

Thanks,
Steve V.


More information about the Members mailing list