on-internet
← Community

How to sum values for same occurrence in a CSV file? [closed]

Stack Overflow ·

I have this CSV file: id;nucleotides seq1;230 seq2;40 seq1;50 seq3;30 and the desired result is the unique id and the sum of the nucleotides: id;nucleotides seq1;280 seq2;40 seq3;30 Is there any fast way to do it in Perl or Unix?

Comments

Sign in or sign up to comment and upvote.

No comments yet.