Hello, I have an input file:
LOC_Os04g01890\LOC_Os05g17604 0.051307
LOC_Os04g01890\LOC_Os05g17604 0.150977
LOC_Os04g01890\LOC_Os05g17604 0.306231
LOC_Os04g01890\LOC_Os06g33100 0.168037
LOC_Os04g01890\LOC_Os06g33100 0.236293
LOC_Os04g01890\LOC_Os07g03590 0.109948
LOC_Os04g01890\LOC_Os07g03590 0.12325
I want to select the largest of each repeated entries based on Column 2
Desired output:
LOC_Os04g01890\LOC_Os05g17604 0.306231
LOC_Os04g01890\LOC_Os06g33100 0.236293
LOC_Os04g01890\LOC_Os07g03590 0.12325
Wanted to know a shell command which can do this. Thanks