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
asadmin-list-instances(1AS)					   User Commands				       asadmin-list-instances(1AS)

NAME
asadmin-list-instances, list-instances - lists all the instances in the server SYNOPSIS
list-instances [--user admin_user] [--password admin_password] [--host localhost] [--port 4848] [--domain domain_name] [--local=false] [--passwordfile filename] [--secure|-s] Use the list-instances to list all the instance in the server. The list-instances command can be run both locally and remotely. To list remote instances, the named administration server must be running on the hostname and port number specified. The user authenticates using the password identified for the administration server. OPTIONS
--user administrative user associated for the instanace. --password administrative password corresponding to the administrative user. --host host name of the machine hosting the administrative instance. --port port number associated with the administrative host. --domain name of the domain. --local determines if the command should delegate the request to administrative instance or run locally. --passwordfile file containing passwords appropriate for the command (e.g., administrative instance). --secure if true, uses SSL/TLS to communicate with the administrative instance. Example 1: Using list-instances in local mode asadmin> list-instances --domain1 --local admin-server running server1 running Where: the server1 and admin-server instances for the domain1 domain is listed. Example 2: Using list-instances in remote mode asadmin> list-instances --user admin --passwordfile passwords.txt --host localhost --port 4848 server1 [mayank:80] running Where: the server1 instance associated with the specified user, passwords, host, and port number specified is listed for the remote machine. EXIT STATUS
0 command executed successfully 1 error in executing the command INTERFACE EQUIVALENT
Server Instance page asadmin-show-instance-status(1AS) J2EE 1.4 SDK March 2004 asadmin-list-instances(1AS)
All times are GMT -4. The time now is 05:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy