línea de comando si la salida del comando es igual a la cadena
if [[ $(< your command giving output >) = *< substring to match >* ]]; then
< your command if the substring is found anywhere in the output >
fi
Rich Raccoon