title: Wildcard expression comparison not working
body: <p>I need to compare if the 2nd line of the input file contains the string <code>premium-world-check.xsd</code>. If it is present, I need not do anything.
  If it is not present, I need to prepend to another file.</p>
  
  <p>I have below input file,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="premium-world-check.xsd"&gt;
  &lt;record category="INDIVIDUAL"&gt;
  &lt;tag1&gt;
  &lt;tag2&gt;
  ....
  &lt;/tag2&gt;
  &lt;/tag1&gt;
  </code></pre>
  
  <p>Below is my code,</p>
  
  <pre><code>xsdFlag=`sed -n '2p' ${myInputFile}`
  if [ $xsdFlag == *"premium-world-check.xsd"* ]
  then
      echo "Prepending not required"
  else
      echo "&lt;records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="premium-world-check.xsd"&gt;" | cat - ${myInputFile} &gt; wcTemp.xml &amp;&amp; mv wcTemp.xml ${myInputFile}
      echo "&lt;?xml version="1.0" encoding="UTF-8"?&gt;" | cat - ${myInputFile} &gt; wcTemp.xml &amp;&amp; mv wcTemp.xml ${myInputFile}
      echo "PREPENDING:"
  fi
  </code></pre>
  
  <p>I am getting unknown operator in my <code>if</code> condition.</p>