📜  grep if - Shell-Bash 代码示例

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

代码示例1
if echo "40922|OPR MO 12345|OPR MO 12345|12345|202|local|LMNO" | grep -q "MO"
  then echo "FOUND"
  else echo "NOT FOUND"
fi