The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-03-2007
cosec cosec is offline
Registered User
 

Join Date: Sep 2007
Posts: 12
with Regard to Case Statement

I need to check if $1 is A or B
I tried the following but it seems its not correct..would appreciate a suggestion ?


case "$1"
in
"A" || "B" )
;;
esac

Thanks
Reply With Quote
Forum Sponsor