The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-03-2006
Andrek Andrek is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 122
You could convert the input string to...
all upper case and test for uppercase Y only
all lower case and test for lowercase y on;y
use the "or" in your if statememt "$ret" != "y" || "$ret" != "Y"