LANGUAGE » SHELL_SCRIPT » BASH

Extglob

Usage

Enable / Disable:

shell
shopt -s extglob
shopt -u extglob

Remove all but

shell
rm -v !('filename1'|'filename2')