Try a pattern matching expression, like this: Code: if [ "${my#*bc}" != "$my" ]
if [ "${my#*bc}" != "$my" ]