Search Results

Search: Posts Made By: RudiC
1,319
Posted By RudiC
You were halfway there. Try awk -F, '{if (a[$2]<...
You were halfway there. Try awk -F, '{if (a[$2]< $3) {a[$2]=$3;b[$2]=$1}} END{for(i in a){print b[i],i,a[i];}}' OFS="," file
zzz,1,3000
ttttt,2,500
xyxy,3,1000

or awk -F, 'a[$2] < $3...
1,319
Posted By RudiC
Show us your attempts. What stops you from...
Show us your attempts. What stops you from printing the lines with respective groups' max?
Showing results 1 to 2 of 2

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