The Unix shell recognises a limited form of regular expressions used with filename substitution:
Operators
Operator
Effect
?
The hook operator specifies any single character.
[ ]
boxes enable a single character to be matched against a character lists or character range.
[! ]
A compliment box enables a single character not within in a character list or character range to be matched.
*
An asterisk specifies zero or more…
8. Shell正则表达式
发布于