Created
November 1, 2016 08:07
-
-
Save zealfire/5095fd7cb6b122bda7ef4f4161ad7b33 to your computer and use it in GitHub Desktop.
use these command when you want to remove files with few exceptions
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
shopt -s extglob | |
rm !(X|Y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment