Linux shell if 判断字符串包含子串 string='My long string' if [[ $string == *"My long"* ]] || [[ $string == *"my long"* ]]; then echo "It's there"fi