title: Read user input inside a loop
body: <p>I am having a bash script which is something like following,</p>
  
  <pre><code>cat filename | while read line
  do
      read input;
      echo $input;
  done
  </code></pre>
  
  <p>but this is clearly not giving me the right output as when I do read in the while loop it tries to read from the file filename because of the possible I/O redirection.</p>
  
  <p>Any other way of doing the same?</p>