Use !=. if [[ ${testmystring} != *"c0"* ]];then # testmystring does not contain c0 fi See help [[ for more information. As mainframer said, you can use grep ...
確定! 回上一頁