title: Edit .csv file via shell script output
body: <p>I have a script which takes a <code>.csv</code> file as a an input and runs row by row</p>
  
  <pre><code>kma210,projects.kma210
  kma215,projects.kma215_2
  KMA3xx,projects.kma3xx
  KMI7,projects.kmi7
  </code></pre>
  
  <p>The above one is a sample for the <code>.csv</code> file. I have two types of process running for each row (example : abc_process and xyz_process).    </p>
  
  <p>Now my requirement is once the script runs one row , the output i.e., success/fail should print in the same file in third column (<code>abc_process</code>) and fourth column (<code>xyz_process</code>).   </p>
  
  <p>Example please see here:</p>
  
  <pre><code>kma210,projects.kma210,success,success
  kma215,projects.kma215_2,fail,success
  KMA3xx,projects.kma3xx,success,fail
  KMI7,projects.kmi7,fail,fail
  </code></pre>
  
  <p>Could anyone please suggest?</p>