Created
December 11, 2015 14:04
-
-
Save icirellik/afad35026b91b1606390 to your computer and use it in GitHub Desktop.
Find and Remove Empty Directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prints all the empty directories in the local dir. | |
find . -type d -empty -print | |
# Removes all the empty directories in the local dir. | |
find . -type d -empty -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment