string="Hello, World!"
substring="World"
if [[ $string == *"$substring"* ]]; then
echo "字符串包含指定的子串"
else
echo "字符串不包含指定的子串"
fi
10-12
4200
04-17
2071
string="Hello, World!"
substring="World"
if [[ $string == *"$substring"* ]]; then
echo "字符串包含指定的子串"
else
echo "字符串不包含指定的子串"
fi