title: shell script to add a new column at last
body: <pre><code>Input file test.csv 
  =================
  1,abc, 12,12-19
  2,aslk,16,13-143
  3,kjsd,45,11-137
  4,ajsd,144,10-190
  
  required output:
  ======================== 
  1,abc, 12,12-19,z
  2,aslk,16,13-143,z
  3,kjsd,45,11-137,z
  4,ajsd,144,10-190,z
  </code></pre>
  
  <p>I am using  the following command. </p>
  
  <pre><code>awk -F"," 'BEGIN { OFS = "," } {$5="z"; print}' input.csv &gt; output.csv
  </code></pre>
  
  <p>but I am getting: </p>
  
  <pre><code>========================
  1,abc, 12,12-19
  ,z
  2,aslk,16,13-143
  ,z
  3,kjsd,45,11-137
  ,z
  4,ajsd,144,10-190
  ,z
  </code></pre>
  
  <p>Please help me to get the required output.</p>