Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need an example of "if cond1 or cond2 then..."

819570Mar 22 2011 — edited Mar 22 2011
Hi,

I've yet to see an example of Linux shell scripting that uses the operators 'and' and 'or'

Can this be done in shell scripting.
if cond1 or cond2
then
.
.
.
if so is the 'or' in the same set of brackets or do you use two sets of brackets with the 'or' between them?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2011
Added on Mar 22 2011
2 comments
640 views