Search Results

Search: Posts Made By: anniecarv
2,287
Posted By rdrtx1
try: awk ' {n=$0;sub(".*=", "", n);n+=0} ...
try:
awk '
{n=$0;sub(".*=", "", n);n+=0}
!a[$1] {mx[$1]=n}
{a[$1]=$0; if (n>=mx[$1]) {mx[$1]=n; o[$1]=$0}}
END {for (i in o) print o[i]}
' input
Showing results 1 to 1 of 1

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