Sorting on two fields time field and number field

Hi,

I have a file that has data in it that says

00:01:48.233 1212
00:01:56.233 345
00:09:01.221 5678
00:12:23.321 93444

The file has more line than this but i just wanted to put in a snippet to ask how I would get the highest number with time stamp into another file. So from the above date the new file would have 00:12:23.321 93444.

Thanks

This might depend on the platform you're running but here's what worked for me on Linux:

sort -n -k2 filename | tail -1

-n = Treat as a number
-k2 = Sort on second field

As I said, these options might be different on other Unix or Linux platforms. Hope it gives you what you need.

Worked like a charm. Thanks so much for your help.