Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

partial substring comparison bash shell script

string='My long string'
if [[ $string == *"My long"* ]]; then
  echo "It's there!"
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #partial #substring #comparison #bash #shell #script
ADD COMMENT
Topic
Name
7+6 =