Vérifiez si la variable contient des cordes bash
STRING='Hello world'
if [[ $STRING =~ "Hello" ]] ; then echo "It's here" ; fi
Annoying Armadillo
STRING='Hello world'
if [[ $STRING =~ "Hello" ]] ; then echo "It's here" ; fi