Find directories that do not contain a file

Search for directories that don’t contain a file we set in options. In our case are .vmx files.

 bash | 
 
 copy code |
?

1
find /vmfs/volumes/v02tstn02a01/ -type d | while 
2
read dir; do if [ ! -f $dir/*.vmx ]; then 
3
echo $dir; fi; done;