find directories that don't contain a file

/ Published in: Bash
Save to your folder(s)

found via google:

Copy this code and paste it in your HTML
  1. find /vmfs/volumes/v02tstn02a01/ -type d | while read dir; do if [ ! -f $dir/*.vmx ]; then echo $dir; fi; done;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.