Posted By

pspierce on 08/05/11


Tagged

Shell find


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Nix


find directories that don't contain a file


 / Published in: Bash
 

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

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

Report this snippet  

You need to login to post a comment.