title: Arguments passed into for loop in bash script
body: <p>I am trying to pass the argument as max limit for the for loop like this:</p>
  
  <pre><code>#!/bin/bash
  
  for i in {1..$1}
  do
      echo $i
  done
  </code></pre>
  
  <p>This however returns <code>{1..2}</code> when called with argument <code>2</code>, instead of executing the script and giving me</p>
  
  <pre><code>1
  2
  </code></pre>