Finding line with highest number in a file

Hi All,

My file looks some thing like this,

File 1: -
A 10
B 30
C 5
D 25
E 72
F 23

now my requirement is to find the line with highest number in it, i;e the result should be

E 72

Thanks in Advance

sort -nk 2 < file1 | tail -1

:slight_smile: