I have a script which takes a .csv file as a an input and runs row by row
kma210,projects.kma210 kma215,projects.kma215_2 KMA3xx,projects.kma3xx KMI7,projects.kmi7 The above one is a sample for the .csv file. I have two types of process running for each row (example : abc_process and xyz_process).
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 (abc_process) and fourth column (xyz_process).
Example please see here:
kma210,projects.kma210,success,success kma215,projects.kma215_2,fail,success KMA3xx,projects.kma3xx,success,fail KMI7,projects.kmi7,fail,fail Could anyone please suggest?
success/fail?awkand running any system commands within or how else?