title: like clause in if
body: <p>The following is working as expected.</p>
  
  <pre><code>for schema in `mysql -e"show databases"`
  do
  if [[ $schema = 'test' ]];then
  echo $schema
  fi
  done
  </code></pre>
  
  <p>But when I need to select all values starting with test, the following does not work for obvious reasons...</p>
  
  <pre><code>if [[ $schema = 'test%' ]];then
  </code></pre>
  
  <p>I want to select the other values like test_db, test123 etc.</p>