Script de shell de comparação parcial de substring Substring
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