📌  相关文章
📜  如果命令的输出等于字符串,则命令行 - Shell-Bash 代码示例

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

代码示例1
if [[ $(< your command giving output >) = *< substring to match >* ]]; then
  < your command if the substring is found anywhere in the output >
fi