Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 7 GeneA
- 2 GeneB
- 6 GeneC
- 2 GeneB
- 9 GeneA
- 16 GeneA
- 4 GeneB
- 6 GeneC
- awk '{ a[$2]+=$1 }END{ for(i in a) print a[i],i }' file
- 16 GeneA
- 4 GeneB
- 6 GeneC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement