Find a String on a variable [message #270322] |
Wed, 26 September 2007 09:32  |
reksab_16
Messages: 8 Registered: September 2007
|
Junior Member |
|
|
Gurus,
Please help me on this regard.
I have a string variable x in the shell Script.
I wanna find out whether this string contains text 'ORA-'. If it contains, I have to write error message to the error File and abort the execution of the shell script
Else
Continue the process.
Can you please help me with a code snippet?
Thanks.
|
|
|
|
|
Re: Find a String on a variable [message #270392 is a reply to message #270324] |
Wed, 26 September 2007 14:24  |
reksab_16
Messages: 8 Registered: September 2007
|
Junior Member |
|
|
Thanks a lot.
This was very much useful.
I appreciate you help. I am asked only to use Shell Scripting for my Programming. That's y I am coding in that.
Also I need to master in Unix. Can you please suggest me some materials which contains practical examples to start with?
Thanks a Lot,
Bhaskar Natarajan.
|
|
|