zl程序教程

您现在的位置是:首页 >  其他

当前栏目

shell判断字符串包含

shell 字符串 判断 包含
2023-09-27 14:22:01 时间
strA="helloworld"
strB="low"
if [[ $strA =~ $strB ]]
then
    echo "包含"
else
    echo "不包含"
fi