shell =~

在shell脚本中,经常遇到 “=~” ,表达形式如下:



“=~” 用于判断string和右边的正则表达式pattern是否匹配



if [[ “$OS_TYPE” =~ “Darwin” ]];then




https://blog.csdn.net/Man_In_The_Night/article/details/86671974


Category linux