I have a string in Bash:
string=\"My string\"
How can I test if it contains another string?
if [ $string ?? \'foo\' ]; then
[[ $string == *foo* ]] && echo "It's there" || echo "Couldn't find"