I have a file that has a name in the first column and count in the second column. It is sorted by name.
dan 3355
dan 667
dan 889
frank 8
frank 99
frank 90
ian 9
I would like to combine all the same names and output the total count for each name:
dan 4911
frank 197
ian 9
I know that I can use uniq for getting a total count of the identical lines, but how can I preserve the counts that I have in my data?