SHARE
TWEET

Untitled

a guest Oct 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. If [[[ "$var1" = "$var2" || "$var1" = "$var3" || "$var1" = "$var4" ]]];
  2.    
  3. if [[ "$var1" == "$var2" || "$var1" == "$var3" || "$var1" == "$var4" ]]; then
  4.    
  5. case $var1 in
  6.   "$var1" | "$var2" | "$var3") echo match;;
  7.   *) echo no match;;
  8. esac
RAW Paste Data
Top