title: How to make case statement match a number range?
body: <p>I'm running a switch case with column numbers which can be in the range 0 - 50. Now each case supports discrete column number and I observe its failure.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>    i=10
      a=1
      b=0.65
      if [ "$a" != "$b" ]; then 
         case $i in  
              [1]|[2]|[5]) echo "Not OK"; ;; 
              [9-10]|[12]) echo "may be ok"; ;; 
              *) echo "no clue - $i"; ;; 
         esac
     fi
  </code></pre>
  
  <p>I expect this code to output <code>may be ok</code> but get <code>no clue - 10</code>.</p>