📅  最后修改于: 2022-03-11 14:51:21.284000             🧑  作者: Mango
if [[ $(< your command giving output >) = *< substring to match >* ]]; then
< your command if the substring is found anywhere in the output >
fi