|
In ksh and bash you can use a limited form of regex called pattern-matching
ls *.c lists all of the file that have a . followed by the letter c
ls *.[!c] lists all of the files that have a do and do not end in c
the [c] thing is a class of characters. The [!c] means not this class of characters. You can also do
ls *.[Oo] This lists files that end in O or o.
This is all part of globbing in shell.
|