Conduct a search or test -f over a path with spaces

view story

http://www.unix.com – I am organizing my music library on a NAS server. I want to print a list of all the directories that are missing the cover art (at least one or more jpeg file). I have successfully created a file with each line containing the path to each occurance of one or more .mp3 files. That path is also expected to have one or more files ending in .jpg or .JPG. My input file strings look like this: Code: /c/mp3/Bad Company/Rough Diamonds /c/mp3/Bad Company/Burnin' Sky Most of the directory paths have one or more spaces in the directory, preventing me from testing for files with the .jpg extens (HowTos)