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 -