Teilweise Substring -Vergleichs -Bash -Shell -Skript
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