Search Results

Search: Posts Made By: Nysif Steve
Forum: Infrastructure Monitoring 09-04-2007
4,280
Posted By Nysif Steve
I ended up using the code: cat logfile |...
I ended up using the code:

cat logfile | sort | uniq -c -n6 >> logreport


For the uniq command the -c flag will print the number of occurences before each line while the -n6 flag will ignore...
Forum: Infrastructure Monitoring 08-31-2007
4,280
Posted By Nysif Steve
Remove Similar Lines from 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...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy