1

Help with sum of data set

view story
linux-howto

http://www.unix.com – Input file Code: 2        1159,310,          4        142,199,218,91,    3        91,273,349, Desired output result Code: 2        1469 4        650 3        713 I have long list of input file as shown above. It has a "," delimited to separate between each record in column 2. I would like to sum all the record in same line at column 2 to get the desired output result. The theory behind to manual calculate to get (HowTos)