Article 53G7P Finding directories without specific file

Finding directories without specific file

by
johnmb12
from LinuxQuestions.org on (#53G7P)
Have my music on a drive, saved in directories as AAA, BBB, CCC, (thousands of directories,,,) etc with music saved by artist, and each directory should have an m3u (playlist) file. Unfortunately, a number don't, and am looking for an easy way to find which directories, don't.
Have been trying to get the command "find" to work for me, using:
Code:
find . -type d '!' -exec test -e "{}/*.m3u" \; -print
or similar,(stolen from somewhere...), but can't get it to work.
Can anyone straighten me out on this, and/or suggest a simple bash script to do the same..?

Thanks.latest?d=yIl2AUoC8zA latest?i=ZGVNEYs74PQ:gN7wI8TsfDs:F7zBnMy latest?i=ZGVNEYs74PQ:gN7wI8TsfDs:V_sGLiP latest?d=qj6IDK7rITs latest?i=ZGVNEYs74PQ:gN7wI8TsfDs:gIN9vFwZGVNEYs74PQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments