title: Using grep in while loop
body: <p>Is it possible to go trough the results of grep in using a shell script like this:</p>
  
  <pre><code>while read line ; do
      ...
  done &lt; grep ...
  </code></pre>
  
  <p>Can anyone explain why this doesn't work? What are the alternatives?</p>
  
  <p>thanks!</p>