The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
if then statements with two conditions...?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
if then statements with two conditions...?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
09-19-2008
manosubsulo
Registered User
Join Date: Aug 2008
Posts: 87
Code:
if [ "$VAR" = "Upper" -o "$VAR" = "Lower" ] VAR="25" fi
here
-o
represents logical or
manosubsulo
View Public Profile
Find all posts by manosubsulo
Find manosubsulo's past nominations received
Find manosubsulo's present nominations given