Last active
February 12, 2018 15:43
-
-
Save dobsondev/83a6c60b15faa265de91 to your computer and use it in GitHub Desktop.
Deletes all files in a directory except those with the extensions given.
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
find . -type f ! -name "*.<extension>" ! -name "*.<extension>" -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment