So, I need help writing a Menu script in UNIX.
First how can I use letters for the options instead of numbers?
Also, is there any templates out on the web I can use?
I bet there are even tons of examples in this forum here. There is a search option in the menu bar above.
#!/bin/sh
read input
case "${input}" in
[aA]) echo "You pressed a";;
[bB]) echo "You pressed b";;
[cC]) echo "You pressed c";;
[0-9]*) echo "Somehow that felt like a number";;
*) echo "Try again";;
esac
exit 0
thanks for the share