|
|
In addition to the regular expression notations discussed above, the Korn Shell provides its own syntax. The metacharacters used by this syntax are similar to those used by the generic regular expression handling notations:
Operator | Meaning |
---|---|
(regexp) | matches 0 or more instances of regexp |
+(regexp) | matches 1 or more instances of regexp |
?(regexp) | matches 0 or 1 instances of regexp |
@(regexp1|regexp2|. . .) | matches regexp1 or regexp2 or . . . |
!(regexp) | matches any string except regexp |