Search Results

Search: Posts Made By: rcc50886
1,058
Posted By rcc50886
Remove lines with Pattren Matching
Hi ,

I need to remove the lines that matches the pattern
TABLEEXCLUDE *.AQ$_*_F ;

* is wildcard, it can be any word.

For example, I have following file:

TABLEEXCLUDE...
2,187
Posted By rcc50886
cat $ORATAB | grep ^+ASM o/p: ...
cat $ORATAB | grep ^+ASM

o/p:
+ASM1:/u01/app/product/11202/grid:N # line added by Agent


I need to compare the count
2,187
Posted By rcc50886
Trim spaces
All,

i am comparing the output of one command to a numberic


if [[ `cat $ORATAB | grep ^+ASM | wc -l` = 1 ]]



but my problem is the output of follwoing is but but has some leading...
1,082
Posted By rcc50886
I have been working on it for last two days... ...
I have been working on it for last two days...


STATE=ONLINE on host1, ONLINE on host2, ONLINE on host3, ONLINE on host4


how to cut the filed based on varaible using awk.



awk -F =...
1,082
Posted By rcc50886
Re: using AWK to compare fileds
I have following text:



NAME=ora.LISTENER.lsnr
TYPE=ora.listener.type
TARGET=ONLINE , ONLINE , ONLINE , ONLINE
STATE=ONLINE on host1, ONLINE on host2, ONLINE...
6,448
Posted By rcc50886
Thanks allot !! It worked for me. Thanks...
Thanks allot !! It worked for me.

Thanks again for your help.
6,448
Posted By rcc50886
I want to print when STATE != TARGET ...
I want to print

when STATE != TARGET

but with one exeception i.e ( TARGET=OFFLINE and STATE=ONLINE)


It makes the assumptions that NAME, STATE, and TARGET are always the first tokens on...
6,448
Posted By rcc50886
Re: exception using AWK
I have following file:




NAME=ora.DG1.svc
TYPE=ora.service.type
CARDINALITY_ID=1
TARGET=ONLINE
STATE=ONLINE

NAME=ora.orlene.DG2.svc
TYPE=ora.service.type
CARDINALITY_ID=1...
1,753
Posted By rcc50886
Re: grep exact search
Hi,



x=GATE

ps -ef|grep pmon
grid 552 1 0 Aug08 ? 00:00:51 asm_pmon_+ASM1
oracle 4314 1 0 Aug08 ? 00:04:08 ora_pmon_GATE1
oracle 5018 1351 0 10:14...
720
Posted By rcc50886
Re: Shell script help
I have file having following contents:


TEST:/opt/oracle/product/112033/db:N
NAME1:/opt/oracle/product/112033/db:N
NAME:/opt/oracle/product/112033/db:N


three fields separated by ":"

I...
1,671
Posted By rcc50886
That was amazing, It worked for me. Your...
That was amazing, It worked for me.

Your previous one worked for me but not the updated one.
1,671
Posted By rcc50886
I am trying to do as follows: ...
I am trying to do as follows:



line_no=1
max_line_no=`cat file_name.txt | wc -l`

if [[line_no <= max_line_no]]
then
range_line_no = line_no + 4
STATE=`awk 'NR>=$line_no &&...
1,671
Posted By rcc50886
Re: Read lines and compare in a loop
I have a file which has following content:


NAME=ora.DG1.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE

NAME=ora.DG2.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE
...
Showing results 1 to 13 of 13

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