ligne de commande si la sortie de la commande est égale à la chaîne

if [[ $(< your command giving output >) = *< substring to match >* ]]; then
  < your command if the substring is found anywhere in the output >
fi
Rich Raccoon