I wonder the general rule to use regular expression in if clause in bash?
Here is an example
$ gg=svm-grid-ch $ if [[ $gg == *grid* ]] ; then echo
Use =~
=~
for regular expression check Regular Expressions Tutorial Table of Contents