Answers for "bash message partial match"

1

bash message partial match

if [[ $string == *"foo"* ]]; then
  echo "It's there!"
fi
Posted by: Guest on January-28-2021
0

substring if statement variable shell script

string="My string"
Posted by: Guest on October-29-2020
-1

substring if statement variable shell script

if [ $string ?? 'foo' ]; then
  echo "It's there!"
fi
Posted by: Guest on October-29-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language