The UNIX and Linux Forums  

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



Thread: case statement
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-11-2007
porter porter is offline
Registered User
 

Join Date: Jan 2007
Posts: 2,965
the format is wrong

Code:
case "$ans" in
y | Y )
      echo yes
      ;;
* )
      echo default
      ;;
esac
Reply With Quote