Created
September 1, 2017 21:13
-
-
Save yurrriq/2472883cc1c867651d3a5f4ba2987c5a to your computer and use it in GitHub Desktop.
Find and delete 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
#!/usr/bin/env bash | |
# Find and delete empty directories in $1 | |
find $1 -empty -type d -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment