title: sh shell for loop without seq
body: <p>I'm writing a script that must work in bash and sh and it runs on a miniscule platform and some things appear to be missing such as seq. All these limitations/requirements is making writing this script VERY difficult. I need to write a for loop that works under all these requirements.</p>
  
  <p>This only works for bash:</p>
  
  <pre><code>for (( i = 0; i &lt;= 4; i++ ))
  do
    echo $i
  done
  </code></pre>
  
  <p>This should work in sh, but the platform I'm using is apparently missing seq.</p>
  
  <pre><code>for i in $(seq 1 $INPUT); do
  </code></pre>
  
  <p>$INPUT is the max defined by the user.</p>