Find Directories With No Files in Unix/Linux

Posted by neversaint on Stack Overflow See other posts from Stack Overflow or by neversaint
Published on 2010-05-26T01:38:32Z Indexed on 2010/05/26 1:41 UTC
Read the original article Hit count: 220

Filed under:
|
|

I have a list of directories

/home
  /dir1
  /dir2
  ...
  /dir100

Some of them have no files in it. How can I use Unix find to do it?

I tried

find . -name "*" -type d -size 0 

Doesn't seem to work.

© Stack Overflow or respective owner

Related posts about linux

Related posts about unix