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