title: awk print is adding a control-m character at end of line
body: <p>I am using awk in a bash script and do something like:</p>
  
  <pre><code>awk -F, -v result_file=$2'{
  print $2 $1 &gt; result_file
  }' $data_file
  </code></pre>
  
  <p>In the output file, I am getting a control-M '^M' character at end of each line. What is wrong?</p>