Bash extended pattern matching

If you don’t have extended pattern matching enabled you can enable it with shopt -s extglob From the bash manual page: If the extglob shell option is enabled using the shopt builtin, several extended pattern matching operators are recognized. In the following description, a pattern-list is a list of one or more patterns separated byContinue reading “Bash extended pattern matching”