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 -->
  #1 (permalink)  
Old 04-25-2008
Khoomfire Khoomfire is offline
Registered User
 

Join Date: Aug 2005
Posts: 64
If with set operators

Hi guys, I'm trying to run more than one "if" condition at once. What I want is something like

if [[ $a = 1 ]] or [[ $b = 2 ]] or [[ $c = 3 ]]; then
...


I can't remember the syntax for using this or/and set operators. Can someone please assist/ jog my memory?

thanks
Khoom
Reply With Quote
Forum Sponsor