Search Results

Search: Posts Made By: ritakadm
1,939
Posted By ritakadm
Not the most elegant solution, but try...
Not the most elegant solution, but try this,,untested..sorry i missed on the sum part...


awk -F, '{a[$1","$2]+=$3;}END{for(i in a)print i", "a[i];}' file > infile


awk -F, '{cntry[$1];...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy