find directories that don't contain a file


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

found via google:
http://www.unix.com/unix-dummies-questions-answers/133697-find-folders-do-not-contain-certain-file.html


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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.