№47
Выбрать все файлы кроме тех что подходят под шаблон
$ shopt extglob
extglob off
$ ls
abar afoo bbar bfoo
$ ls !(b*)
-bash: !: event not found
$ shopt -s extglob #Enables extglob
$ ls !(b*)
abar afoo
$ ls !(a*)
bbar bfoo
$ ls !(*foo)
abar bbar
Источник:
stackoverflow.com
stackoverflow.com