Remove empty directories using *nix find
Mar 06
Top of my head bash, one-liner No Comments
find -depth -type d -empty -exec rmdir {} ;
The -depth parameter tells find to start from the innermost directory first and work its way to the top level.
Thoughts from my head, published to the web. Punishment for people like you who have nothing better to do.
Mar 06
Top of my head bash, one-liner No Comments
find -depth -type d -empty -exec rmdir {} ;
The -depth parameter tells find to start from the innermost directory first and work its way to the top level.