o caso está aqui para ajudá-lo, tente
# cat list.sh
#!/bin/bash
echo -n "Name please? "
read name
echo "Menu for $name"
echo -e "Enter ( 1 ) to Display a long listing of the current directory \nEnter ( 2 ) to Display who is logged on the system\nEnter ( 3 ) to Display the current date and time\nEnter ( 4 ) to Quit"
read en
case "$en" in
1)ls -lR;;
2)who;;
3)date;;
4)echo "Good Bye..."
sleep 0;;
*)echo "Wrong Option selected" ;;
esac
Saída:
# ./list.sh
Name please? Ranjith
Menu for Ranjith
Enter ( 1 ) to Display a long listing of the current directory
Enter ( 2 ) to Display who is logged on the system
Enter ( 3 ) to Display the current date and time
Enter ( 4 ) to Quit
Se você inserir outras opções, o menu mostrará
# ./list.sh
Name please? Ranjith
Menu for Ranjith
Enter ( 1 ) to Display a long listing of the current directory
Enter ( 2 ) to Display who is logged on the system
Enter ( 3 ) to Display the current date and time
Enter ( 4 ) to Quit
5
Wrong Option selected
...