/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string='My string'; if [[ $string == *My* ]] then echo "It's there!"; fi
URL: http://stackoverflow.com/questions/229551/string-contains-in-bash