title: Bash while loop syntax error in do
body: <p>I´m trying do do a simple counter:</p>
  
  <pre><code>max=100
  count=1
  while [[ $count -le $max]]
    do
      echo "$count"
      ((count++))
    done
  </code></pre>
  
  <p>This gives me a syntax error in conditional expression near do.</p>
  
  <p>What´s my issue? (probably something obvious)</p>
  
  <p>The idea is then to raise the <code>max</code> from 100 to 200 and so forth in a superior loop so I will get a new file to manipulate with a python program 100 lines each time, but that´s irrelevant here.</p>