My requirement goes this way, I would like to find out the maximum value of a particular group and write it to an output file. Mentioned below is an example.
Input file:-
TEST1 0010
TEST1 0020
TEST2 0030
TEST2 0040
TEST3 0050
TEST3 0060
TEST3 0070
TEST4 0080
TEST4 0060
TEST5 0090
TEST5 0100
TEST1 0020
TEST2 0030
TEST2 0040
TEST3 0050
TEST3 0060
TEST3 0070
TEST4 0080
TEST4 0060
TEST5 0090
TEST5 0100
Output file:-
TEST1 0020
TEST2 0040
TEST3 0070
TEST4 0080
TEST5 0100
TEST2 0040
TEST3 0070
TEST4 0080
TEST5 0100
Can someone provide me the sort card in achieving the above
Thanks in advance!!