Sponsored Content
Top Forums Shell Programming and Scripting Grep to find single instances of each ERROR type Post 302319666 by ali560045 on Tuesday 26th of May 2009 02:48:07 AM
Old 05-26-2009
let it make this way the output should display only the 1st ERROR of each type irrespective of difference in serial number or intervals

Code:
Archiver6.log:2009-05-25 17:58:44,385 [Thread-6] ERROR - CleanLPDataMessage: Missing Intervals: 2
Archiver6.log:2009-05-25 18:27:36,056 [Thread-6] ERROR - CleanLPDataMessage: Missing Intervals: 5
EventsAdapter.log:2009-05-25 10:57:21,034 [Timer-1] ERROR - Error in record. No PIPe mapping found for trbbitdesc=DIAG IND for serialnumber=10804396
EventsAdapter.log:2009-05-25 10:57:21,035 [Timer-1] ERROR - Error in record. No PIPe mapping found for trbbitdesc=DIAG IND for serialnumber=10804322

Desired output
Code:
Archiver6.log:2009-05-25 17:58:44,385 [Thread-6] ERROR - CleanLPDataMessage: Missing Intervals: 2
EventsAdapter.log:2009-05-25 10:57:21,034 [Timer-1] ERROR - Error in record. No PIPe mapping found for trbbitdesc=DIAG IND for serialnumber=10804396

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find . -type d -exec cd {} \;

Hi all Can anyone tell me why this is not working ? i saw somewhere that i must have serach (execute) permission which i have but it still wont work thx (2 Replies)
Discussion started by: shimont
2 Replies

2. Shell Programming and Scripting

How to replace all string instances found by find+grep

Hello all Im performing find + grep operation that looks like this : find . -name "*.dsp" | xargs grep -on Project.lib | grep -v ':0' and I like to add to this one liner the possibility to replace the string " Project.lib" that found ( more then once in file ) with "Example.lib" how can I do... (0 Replies)
Discussion started by: umen
0 Replies

3. UNIX for Dummies Questions & Answers

grep exclude/find single and double quotes

Hello, I'm trying to use grep or egrep to exclude a whole range of characters but how do I exclude both a single and a double quote. It might be easier to say how do I use grep to find both single and double quotes. grep ' ' " ' file grep detects the first single quote within my... (4 Replies)
Discussion started by: Lindy_so
4 Replies

4. Shell Programming and Scripting

ksh : find value type

Hi, Simple question : How to find the value type from a variable : Ex : var="1" => type is numeric var="a" => type is character Thx :D (3 Replies)
Discussion started by: madmat
3 Replies

5. Shell Programming and Scripting

Grep with multiple instances of same pattern

Hi, This is my text file I'm trying to Grep. Apple Location Greenland Rdsds dsds fdfd ddsads http Received Return Immediately Received End My Grep command: grep only--matching 'Location.*Received' e. Because the keyword Received appears twice, the Grep command will stop at the last... (0 Replies)
Discussion started by: spywarebox
0 Replies

6. Shell Programming and Scripting

Grep with multiple instances of same pattern

Hi, This is my text file I'm trying to Grep. Apple Location Greenland Rdsds dsds fdfd ddsads http Received Return Immediately Received End My Grep command: grep only--matching 'Location.*Received' Because the keyword Received appears twice, the Grep command will stop at the last... (3 Replies)
Discussion started by: spywarebox
3 Replies

7. Shell Programming and Scripting

awk/grep type question

Hi there, I have a Solaris machine with an ifconfig output similar to below lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

8. UNIX and Linux Applications

grep file to find unique instances of username

hello - A SystemOut.log file has recurring entries that follow this format: Principal: auth9.nick.al.gov:389/USERNAME Over the course of a day thousands of lines similar to this are produced, with each username represented hundreds of times. I need to create a new file that shows... (4 Replies)
Discussion started by: 1075FJ40
4 Replies

9. Solaris

Error: svcs: Pattern 'pooladm.conf' doesn't match any instances

Hi, I got the following errors during zfs resource pool configuration. Please help. Thanks. # svcs *pool* svcs: Pattern 'pooladm.conf' doesn't match any instances STATE STIME FMRI # svcadm enable system/pools:default # svcs *pool* svcs: Pattern 'pooladm.conf' doesn't match any... (4 Replies)
Discussion started by: aixlover
4 Replies

10. Shell Programming and Scripting

Grep multiple instances and send email.

Removed (15 Replies)
Discussion started by: saisneha
15 Replies
notifier(7)							    Apple Inc.							       notifier(7)

NAME
notifier - cups notification interface SYNOPSIS
notifier recipient [ user-data ] DESCRIPTION
The CUPS notifier interface provides a standard method for adding support for new event notification methods to CUPS. Each notifier deliv- ers one or more IPP events from the standard input to the specified recipient. Notifiers must read IPP messages from the standard input using the ippNew and ippReadFile functions and exit on error. Notifiers are encouraged to exit after a suitable period of inactivity, however they may exit after reading the first message or stay running until an error is seen. LOG MESSAGES
Messages sent to stderr are generally logged to the current ErrorLog. Each line begins with a standard prefix: ALERT: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "alert" log level. CRIT: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "critical" log level. DEBUG: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "debug" log level. DEBUG2: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "debug2" log level. EMERG: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "emergency" log level. ERROR: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "error" log level. INFO: message Sets the printer-state-message attribute. If the current LogLevel is set to "debug2", also adds the specified message to the current ErrorLog using the "info" log level. NOTICE: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "notice" log level. WARNING: message Sets the printer-state-message attribute and adds the specified message to the current ErrorLog using the "warning" log level. ENVIRONMENT VARIABLES
The following environment variables are defined by the CUPS server when executing the notifier: CHARSET The default text character set, typically utf-8. CUPS_CACHEDIR The directory for semi-persistent cache files can be found. CUPS_DATADIR The directory where data files can be found. CUPS_FILETYPE The type of file being printed: "job-sheet" for a banner page and "document" for a regular print file. CUPS_SERVERROOT The root directory of the server. LANG The default language locale (typically C or en). PATH The standard execution path for external programs that may be run by the filter. SOFTWARE The name and version number of the server (typically CUPS/1.2). TZ The timezone of the server. USER The user executing the filter, typically "lp"; consult the cupsd.conf(5) file for the current setting. SEE ALSO
backend(7), cupsd(8), filter(7), http://localhost:631/help COPYRIGHT
Copyright 2007-2009 by Apple Inc. 12 May 2009 CUPS notifier(7)
All times are GMT -4. The time now is 03:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy