The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-25-2008
sumitc sumitc is offline
Registered User
 

Join Date: Apr 2008
Posts: 19
if [[ $a = 1 ]] or [[ $b = 2 ]] or [[ $c = 3 ]]; then

if [ $a -eq 1 -o $b -eq 2 -o $c -eq 3 ]
then
----
else
----
fi
Reply With Quote