сценарий сравнения частичной подстроки Bash Shell
string='My long string'
if [[ $string == *"My long"* ]]; then
echo "It's there!"
fi
Smoggy Scarab
string='My long string'
if [[ $string == *"My long"* ]]; then
echo "It's there!"
fi