📜  如果有 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:15.100000             🧑  作者: Mango

代码示例1
string='Hi substring' #To check if string has "Mylong" substring do
if [[ $string == *"substring"* ]]; then
  echo "String has substring"
fi