I currently have a script that results in this file :Score1 5Score1 9Score1 4Score2 6Score2 11Score3 10Score3 1Score3 2...And then a number of other scores, in the hundreds.I want to add up the numbers with that are prefaced by the same string, so the output should be :Score1 18Score2 17Score3 13...I have the feeling the correct way to go about it is using awk, but after quite a bit of experimenting I haven't got a solution yet. 
How to sum numbers that have matching strings
awk
Try:awk '{a[$1] += $2}; END{for(c in a) print c, a[c]}' <file