Originally Posted by pablo0713
*) echo "\"$choice\" is not valid "; sleep 2;;
However, when I try to the case command in the same way under Linux, I get a series of syntax errors that reference either the closing } or any line that starts off with "Menu." Removing the case command and menu options from the script and it works fine. Can anyone help me or point me to a good tutorial that uses case in Linux for building a menu?
That code works perfectly well in Linux. Are you sure you are using a Bourne-type shell (bash, dash, pdksh, ksh93).
Try putting a shebang line at the top of your file:
Post the exact error mesages you get if you continue to have problems.