DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Delete Empty Directories (UNIX)
// Shell command to delete empty directories. May have to run several times to get everything.
find . -type d -empty | xargs rmdir -





Comments
Snippets Manager replied on Wed, 2007/02/14 - 4:58am
find dir2 -depth -empty -type d -exec rmdir {} \;Snippets Manager replied on Wed, 2007/02/14 - 4:58am