title: Dividing all numbers in a csv by the same number
body: <p>I have files that are in millimeters and can only be read by another program in meters. I need to convert them into meters (divide by 1000). The original file format looked something like this (for hundreds of lines):</p>
  
  <pre><code>1.11,2.22,3.33
  2.22,3.33,4.44
  </code></pre>
  
  <p>I have tried using awk and used:</p>
  
  <pre><code>awk '{print ($1/1000)","($2/1000)","($3/1000)}' input &gt; output
  </code></pre>
  
  <p>This divided the numbers but changed them from 3 columns into a jumbled mess:</p>
  
  <pre><code>0.00111,0.00222,.003330.00222,0.00333,0.00444
  </code></pre>
  
  <p>How can I divide the numbers but keep the 3 column format?</p>