Find has a test for empty called ( -empty )
I haven't played with it much but I noticed a problem. Even an "empty" folder has . and ..
so the following gives me nothing
Code:
find /home/fred -type d -empty -exec ls {} \;
Code:
This command seems to work a little better....
find /home/fred -empty -exec ls {} \;