Home » Infrastructure » Unix » Need to check if a string argument contains "-" (merged)
Need to check if a string argument contains "-" (merged) [message #328231] |
Thu, 19 June 2008 07:30  |
Olivia
Messages: 519 Registered: June 2008
|
Senior Member |
|
|
I am passing a string as argument. Need to check if it contains "-".
If it contains "-" then check if it contains "-r" .If Yes then print some message else check if it contains "-t".If yes print some message. How this check can be done using shell script?
Need your help!
|
|
|
|
Problem: Check string [message #328252 is a reply to message #328231] |
Thu, 19 June 2008 09:09   |
Olivia
Messages: 519 Registered: June 2008
|
Senior Member |
|
|
I am passing a string as argument. Need to check if it contains "-".
If it contains "-" then check if it contains "-r" .If Yes then print some message else check if it contains "-t".If yes print some message. How this check can be done using shell script?
Need your help!
Quote: |
Re: Need to check if a string argument contains "-" [message #328234 is a reply to message #328231 ] Thu, 19 June 2008 07:39
Michel Cadot
Messages: 16451
Registered: March 2007
Location: Nanterre, France, http://... Senior Member add to buddy list
ignore all messages by this user
As this is NOT an Oracle-related question, the topic is locked.
|
Aaah! Come on Michel! Instead of merging the query my previous message was deleted! why???
This is just a basic question! Does shell script contains all the content in Oracle only???
Shell script should not contain any lines other than Oracle 
[Just joking...dont mind!]
Regards,
Oli
[Updated on: Thu, 19 June 2008 09:12] Report message to a moderator
|
|
|
|
|
|
 |
Goto Forum:
Current Time: Sun May 04 03:14:24 CDT 2025
|