title: How do I “read” multiple variables on a while loop
body: <p>How can I read from multiple variables with a while read line? I'm trying to create a csv file from these variables which are multi-lined.</p>
  
  <p>Not sure if this the best way to do this.</p>
  
  <p>For example:</p>
  
  <pre><code>1st_list=$(..code..)
  2nd_list=$(..code..)
  
  while read line_from_1, line_from_2
  do
      echo "$line_from_1,$line_from_2" &gt;&gt; outputfile.csv
  
  done &lt; $1st_list,$2nd_list
  </code></pre>