title: moving file pointer after reading a line from a file
body: <pre><code>while read line;do
  read header_line &lt; headers.txt
  task 1
  task 2
  done &lt; temp1.txt
  </code></pre>
  
  <p>I want to be reading lines from files headers.txt and temp1.txt simultaneously. So, for eg if i read a line from temp1.txt, i should also read a line from headers.txt. Problem with this code is that it reads the lines from temp1.txt one by one but it keeps reading the same line from headers.txt. I want the file pointer to move to the next line once header_line is read. How do i go about it?</p>