I have a file on the following format
id_1,1,0,2,3,lable1 id_2,3,2,2,1,lable1 id_3,5,1,7,6,lable1
and I want the summation of each column ( I
Here's a Perl one-liner:
It will only do sums, so the first and last column in your example will be 0.
This version will follow your example output: