Search for latest Timestamp in file

Hi,

I have a file which generate Timestamp in this format :-

20121012162354
20121114191610
20121210232808
20121216220002
20130106220002
20130127220001
20130203220001
20121012162354
20121114191610
20121210232808
20121216220002
20130106220002
20130127220001
20130203220001

can any one plz help me to search for the latest timestamp in file,Probably last one is the latest one but I am not able to grep.Any script which actually search the auto generated timestamp file and then result output for the latest time only ...:confused:

Thanks in Advance.

sort -n filename | tail -1
1 Like

sort <filename> | tail -1

1 Like