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.
find /vmfs/volumes/v02tstn02a01/ -type d | while
read dir; do if [ ! -f $dir/*.vmx ]; then
echo $dir; fi; done;

 


Posted

in

by

Tags: