Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

find directories not contain specific file

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
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #find #directories #specific #file
ADD COMMENT
Topic
Name
4+7 =