$ find . -empty -type d -exec rmdir {} +
A quick way to find and delete empty dirs, it starts in the current working directory.
If you do find . -empty -type d you will see what could be removed, or to a test run.
by David Winterbottom (codeinthehole.com)
0sem comentários ainda