I'm trying to sum up the values of column 2 where column 1 is a duplicate value, however my google search is off as I get results on how to add columns or sum whole rows not where a value matches.
Can someone confirm or link me to where I can find out how to do this? I've got to the point of organising the data but the final step eludes my search engine.
Current code
cat example.csv | sort | ##pipe of the thing that sums > output.csv
example.csv
platform1,24257022
platform2,44959636
platform_3,62
platform2,2
platform_3,20
platform1,572475
platform_3,75
desired output.csv
platform1,24829497
platform2,44959638
platform_3,157
Apologies that this is such a basic question I'm asking...