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 Go to next message
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!
Re: Need to check if a string argument contains "-" [message #328234 is a reply to message #328231] Thu, 19 June 2008 07:39 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
As this is NOT an Oracle-related question, the topic is locked.

Regards
Michel
Problem: Check string [message #328252 is a reply to message #328231] Thu, 19 June 2008 09:09 Go to previous messageGo to next message
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 Smile

[Just joking...dont mind!]

Regards,
Oli

[Updated on: Thu, 19 June 2008 09:12]

Report message to a moderator

Re: Problem: Check string [message #328256 is a reply to message #328252] Thu, 19 June 2008 09:33 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Oli,
Please follow the posting guideline on topic or stay silent.

http://www.orafaq.com/forum/t/88153/0/
Re: Problem: Check string [message #328257 is a reply to message #328252] Thu, 19 June 2008 09:34 Go to previous message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Quote:
Aaah! Come on Michel! Instead of merging the query my previous message was deleted! why???

It was merged and deleted as duplicate.

I will merge this one too and this is still not an Oracle-related question, so it is locked.
This is an Oracle site, just an Oracle forum, post you question in an Unix forum.

Regards
Michel
Previous Topic: command
Next Topic: Trouble : Backup fail someting
Goto Forum:
  


Current Time: Mon Dec 02 18:37:40 CST 2024