8

[ubuntu] and or function with if else script

view full story
linux-howto

http://ubuntuforums.org – i have the following code Code: echo "is this correct? type Y for yes or N for no" read correct  if [ $correct = y ]       then echo "you typed yes"        elif [ $correct = Y ]       then echo "you typed yes"       else echo "you typed no" fi can i combine the y and the Y into one if statement? Code: echo "is this correct? type Y for yes or N for no" read correct  if [ $correct = y or Y ]       then echo "you typed yes"   &n (Hardware)