![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help: Collecting similar messages in a file | ashish.kapil | Shell Programming and Scripting | 2 | 01-16-2008 03:57 AM |
| Remove Similar Lines from a File | Nysif Steve | Shell Programming and Scripting | 3 | 09-04-2007 07:20 AM |
| replace a similar field in a file | chiru_h | Shell Programming and Scripting | 2 | 11-01-2006 02:23 PM |
| cuting the entries from one file and copy to other | vasikaran | UNIX for Dummies Questions & Answers | 0 | 08-03-2005 05:22 AM |
| deleting double entries in a log file | opusforum | Shell Programming and Scripting | 5 | 09-17-2002 12:02 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Remove Similar entries in a File
--------------------------------------------------------------------------------
I have a log file "logreport" that contains several lines as seen below: 04:20:00 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] Agent snmpd appeared dead but responded to ping 06:38:08 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] Agent snmpd appeared dead but responded to ping 07:11:05 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] Agent snmpd appeared dead but responded to ping I would like to edit the report to remove entries that report duplicate events. I am trying to produce an output close to what is seen below: 04:20:00 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] Agent snmpd appeared dead but responded to ping This Error was reproduced 2 times |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Forum rules - no duplicate posts !!!
|
||||
| Google The UNIX and Linux Forums |