📜  shell 检查字符串是否包含子字符串 - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:49:48.999000             🧑  作者: Mango
代码示例2
string='Haystack';
if [[ $string =~ "Needle" ]]
then
echo "It's there!"
fi