title: to collect awk output in while using pipe
body: <p><strong>File is:</strong></p>
  
  <pre><code>12345,Collect
  34522,Share
  45221,Result
  </code></pre>
  
  <p><strong>Script:</strong></p>
  
  <pre><code>awk -F ',' '{print $1 $2}' file | while read -r first second
  do
  echo $first "and" $second
  done
  </code></pre>
  
  <p>I'm trying to collect <code>$1</code> and <code>$2</code> in first and second variable.</p>
  
  <p>Thanks</p>