Skip to content

Instantly share code, notes, and snippets.

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