Use !=.
if [[ ${testmystring} != *"c0"* ]];then
# testmystring does not contain c0
fi
See help [[ for more information.
Use !=.
if [[ ${testmystring} != *"c0"* ]];then
# testmystring does not contain c0
fi
See help [[ for more information.