An additional binary operator, =~ , is available, with the same precedence as == and !=. When it is used, the string to the right of the operator is considered an extended regular expression and matched accordingly (as in regex(3)). The return value is 0 if the string matches the pattern, and 1 otherwise.
[[ expression ]]
最新推荐文章于 2024-07-31 10:36:15 发布