Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to get unique value using AWK?

Re: How to get unique value using AWK?

From: Ed <esimmonds_at_speakeasy.net>
Date: Thu, 22 Jan 2004 09:39:35 -0800
Message-ID: <F001.005DDE74.20040122093935@fatcity.com>

On Thu, 2004-01-22 at 10:09, jaysingh1_at_optonline.net wrote:
> Hi All,
>
> My manager wants to get all the unique wait events from the trace file.
> I tried the below but how do i get DISTICT wait event name?
>
> Any help would be really appreciated.
>

grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3" " $4 " " $5 " "$6}' | sort | uniq -c

Or something similar should work.

-- 
Edward Simmonds     RHCE, OCP
- Real men don't send html email.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ed
  INET: esimmonds_at_speakeasy.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Jan 22 2004 - 11:39:35 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US