| To: | "'D'Apice, Dominic'" <D.D'Apice@SAQ.qc.ca>, "'nv-l@lists.tivoli.com'" <nv-l@lists.tivoli.com> |
|---|---|
| Subject: | [nv-l] [ksh] searching character string in a variable |
| From: | "Davis, Donald" <donald.davis@firstcitizens.com> |
| Date: | Wed, 24 Apr 2002 10:10:01 -0400 |
|
Dominic,
echo $alert | grep "rule 11"
Don
-----Original Message-----
Hello all, nv7.1 aix433 i need to do a ksh script who seach a string character in a variable what is the sentence for that ? i mean like : grep "rule 11" $alert... i would like to do something like that : if ( grep "rule 11" $alert ) = 1 then # if we found this string then do
but the variable does'nt work like a file : grep "rule 11" script.sh it will be apreciated
---------------------------------------------------------------------
*NOTE*
------------------------------------------------------------------------------ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [nv-l] URGENT - trap flood, Allison, Jason (JALLISON) |
|---|---|
| Next by Date: | Re: [nv-l] Problem with SNMP Status, Oliver Bruchhaeuser |
| Previous by Thread: | [nv-l] searching character string in a variable, D'Apice, Dominic |
| Next by Thread: | [nv-l] Switch Analyzer presentation?, Pam Geiger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web