How do I compare a variable to a string (and do something if they match)?
To compare strings with wildcards use
if [[ "$stringA" == *$stringB* ]]; then # Do something here else # Do Something here fi