Найти каталоги, не содержащие определенного файла

find /path/to/search -type d \! -exec test -e '{}/file_no_hereName' \; -print

find . -type d '!' -exec test -e "{}/your_file" ';' -print

https://unix.stackexchange.com/questions/158238/find-directories-not-containing-a-file
Hutch Polecat