Sort contents of a file By date

Zaid Anwer zanwer at gmail.com
Thu May 22 05:39:24 EDT 2008


Hi,

I have a query :-

Is there any command or link that could help me to sort the content of a
file by date.

File has couple of thousands lines every line starts with
timestamp(Date,Time) and then Log information.

It has some duplicate lines as well that has only timestamps same, I want to
remove the duplicate lines that has same time stamps.

Thanks in advance.
Regards,
Zee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080522/d0bfd769/attachment.html>


More information about the Python-list mailing list