title: Linux command to do wild card matching
body: <p>Is there any bash command to do something similar to:</p>
  
  <pre><code>if [[ $string =~ $pattern ]]
  </code></pre>
  
  <p>but that it works with simple wild cards (?,*) and not complex regular expressions ??</p>
  
  <hr>
  
  <p><strong>More info:</strong></p>
  
  <p>I have a config file (a sort of .ini-like file) where each line is composed of a wild card pattern and some other data.<br>
  For any given input string that my script receives, I have to find the first line in the config file where the wild card pattern matches the input string and then return the rest of the data in that line.<br>
  It's simple. I just need a way to match a string against wild card patterns and not RegExps since the patterns may contain dots, brackets, dashes, etc. and I don't want those to be interpreted as special characters.</p>