Created
August 7, 2018 03:49
-
-
Save srz-zumix/f7ba5fa10adfc9612da8732aaa6d71eb to your computer and use it in GitHub Desktop.
rm_empty_dir
This file contains hidden or 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
| #!/bin/sh | |
| find . -type d -empty -maxdepth 1 -exec rmdir "{}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment