![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deleting double entries in a log file | opusforum | Shell Programming and Scripting | 7 | 03-13-2009 04:42 AM |
| Remove Similar Lines from a File | Nysif Steve | Shell Programming and Scripting | 4 | 03-13-2009 03:49 AM |
| Need Help: Collecting similar messages in a file | ashish.kapil | Shell Programming and Scripting | 2 | 01-16-2008 06:57 AM |
| replace a similar field in a file | chiru_h | Shell Programming and Scripting | 2 | 11-01-2006 05:23 PM |
| cuting the entries from one file and copy to other | vasikaran | UNIX for Dummies Questions & Answers | 0 | 08-03-2005 08:22 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|