How do I compare a variable to a string (and do something if they match)?
you can also use use case/esac
case "$string" in "$pattern" ) echo "found";; esac