jack777
25th April 2008, 07:00
Hi
Having a file as follows
==================================================
Date Time error code server
================================================== ====
12-29-08 10:10 121221 server A
12-29-08 10:12 121221 server A
12-29-08 10:10 121221 server B
12-29-08 10:10 121221 server c
Need to remove the duplicate lines with the following conditions
if date=12-29-08 and server=server A .
Must delete the line with old time and keep the latest.
anyone can suggest
Thanks in advance
Having a file as follows
==================================================
Date Time error code server
================================================== ====
12-29-08 10:10 121221 server A
12-29-08 10:12 121221 server A
12-29-08 10:10 121221 server B
12-29-08 10:10 121221 server c
Need to remove the duplicate lines with the following conditions
if date=12-29-08 and server=server A .
Must delete the line with old time and keep the latest.
anyone can suggest
Thanks in advance