I have a file like:
$ cat input.csv
201,100
201,300
300,100
300,500
100,400
I want to add the values in column 2 which has same value in column 1. Expected output is as follows:
$ cat output.csv
201,400
300,600
100,400
I tried to do this by awk command but it is not working in Solaris. Please provide some alternative.
nawkor/usr/xpg4/bin/awk, or add aPATH=`getconf PATH`:$PATHas the one in/binis an ancient non-standard one.