[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Development & Programming  |  Topic: remove duplicate lines in file
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: remove duplicate lines in file  (Read 276 times)
0 Members and 1 Guest are viewing this topic.
jack7974
New Member

Offline Offline

Posts: 1


View Profile
« on: April 25, 2008, 12:09:28 AM »

Hi
Having a file as follows

Code:
==================================================
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 B

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
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
how to remove tranparent Proxy General Networking Support in Linux softmafia 2 902 Last post June 11, 2004, 11:23:32 AM
by Ricky
how to change / remove boot time screen display Miscellaneous tomamodi 3 665 Last post September 30, 2005, 01:06:39 AM
by tomamodi
Remove old kernel version Linux Kernel shipoin_97 1 917 Last post November 01, 2005, 07:10:06 AM
by Ricky
create user with duplicate UID Miscellaneous sravanth.svk 5 801 Last post April 18, 2006, 09:57:34 AM
by sravanth.svk
Add/Remove Packages form Redhat Distribution Specific Ujjwol 1 413 Last post November 20, 2007, 03:22:20 PM
by Ricky
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 09:44:46 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6227
Latest: karunadct
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 14
Total: 14
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc