I want to display all directories, that do not contain files with a specific file ending. Therefore I tried using the following code:
find . -type d \! -exec test -e '{}/*.ENDING' \; -print
In this example I wanted to display all directories, that do not contain files with the ending .ENDING
, but this does not work.
Where is my mistake?