deleting a pattern

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

deleting a pattern

Sefako
Hallo Team,

I have this csv file below:

$ cat max2.csv
ContactCalls,ContactCallDuration,ContactCallCost,ContactTotalTelkomAsIf
0,00:00:00,0,0
0,00:00:00,0,0
39819,4033:46:29,36303.97,122416
0,00:00:00,0,0
0,00:00:00,0,0
60709,5875:49:54,53006.06,178499.14
0,00:00:00,0,0
0,00:00:00,0,0
0,00:00:00,0,0
121,07:13:34,65.03,221.13
0,00:00:00,0,0
9063,673:10:03,6332.19,20613.26
0,00:00:00,0,0
0,00:00:00,0,0
0,00:00:00,0,0
$

I would like to add all the columns so that the final output can be like below:

$ cat max2.csv
ContactCalls,ContactCallDuration,ContactCallCost,ContactTotalTelkomAsIf
109712,10590:00:00,95707.25,321749.53
$

Regards,
Sefako