Like the standard (simple) glob templates, bash β₯4.0 has an extended pullup. Disabled by
default . To enable it, use:shopt -s extglob
extglob , . , glob , glob, . , : shopt -s nocaseglob
extglob . . , . , , , ?(e). - glob, .
- , , :
shopt -s extglob nocaseglob
ls -l *.jp?(e)g
: Bash .