title: Loop first run continue in shell script
body: <p>How to break out of infinite <code>while</code> loop in a shell script?</p>
  
  <p>I want to implement the following <code>PHP</code> code in shell script(s):</p>
  
  <pre><code>$i=1; 
  while( 1 ) {
    if ( $i == 1 ) continue;
    if ( $i &gt; 9 ) break;
    $i++;
  }
  </code></pre>