📜  bash if substring - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:51:21.239000             🧑  作者: Mango
代码示例2
string='Haystack';
if [[ $string =~ "Needle" ]]
then
echo "It's there!"
fi