title: While Condition to cat a file line by line
body: <p>Typically I use</p>
  
  <pre><code>cat filename|while read line; do
  echo $line
  </code></pre>
  
  <p>This works fine...but I would like to do this with a condition attached.</p>
  
  <pre><code>cat filename|while i=2 read line; do
  echo $line
  </code></pre>
  
  <p>Now I know that wont work, but how can I attach a condition to this?</p>