Created
August 14, 2018 10:36
-
-
Save onmotion/9252fa56de92cc61e900209b2bff8ce1 to your computer and use it in GitHub Desktop.
remove all directories except
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
#!/bin/bash | |
find . ! -name 'thumbnails' -type d -maxdepth 1 -exec rm -rf {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment