Hi,
I was trying with sort (uniq) but failed to get it.
The input file has this format
aaaa xxxxx
bbbb xxxxx
cccc xxxxx
dddd yyyyy
eeee yyyyy
ffff zzzzz
What command would I use to create a new output file and only keep one (highest) line with the same value in column 2.
I want to get:
aaaa xxxxx
dddd yyyyy
Thank you
I was trying with sort (uniq) but failed to get it.
The input file has this format
aaaa xxxxx
bbbb xxxxx
cccc xxxxx
dddd yyyyy
eeee yyyyy
ffff zzzzz
What command would I use to create a new output file and only keep one (highest) line with the same value in column 2.
I want to get:
aaaa xxxxx
dddd yyyyy
Thank you