Answers for "partial substring comparison bash shell script"

0

partial substring comparison bash shell script

string='My long string'
if [[ $string == *"My long"* ]]; then
  echo "It's there!"
fi
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language