case statement
Hi all,
I think i'm asking a sqtupid question here..
i'm using case sttament, what is the syntax or symbol for "or"?
I thought was ||
here a quick sample of my case statment
echo "Would you like to update your detail [Y/N]?"
read response
case $response in
"Y" || "y" )
echo "Please enter your new name
read name;;
"N" || "n")
echo "Bye bye"
exit;;
When i use above sytax, it complains "||" symbol
please help
Last edited by otheus; 10-12-2008 at 08:29 AM..
Reason: playfully Changing thread icon.
|