This is the script for the main menu:
$ MainMenu
echo " Please choose from the above options : \c"
read option
case $option in
[Dd] ) echo "You have chosen to Display student" ;;
[Aa] ) echo "You have chosen to Add a student" ;;
[Ee] ) echo "You have chosen to Edit a student" ;;
[Ss] ) echo "You have chosen to Sort a student" ;;
[Hh] ) echo "You have chosen Help" ;;
[Xx] ) echo "You have chosen to Exit" ;;
esac
If the user choose e for edit I would like the screen display the Edit Menu on the screen like this:
You have chosen to Edit\delete a student:
1)Edit Student
2)Delete Student
3)Help
4)Exit to Main Menu
Enter Selection >
Do I write a script for the edit menu and then insert below
[Ee] ) echo "You have chosen to Edit a student"
clear
while true
do
edit.text
or someting like this to have the second level of menu options run?
$ MainMenu
echo " Please choose from the above options : \c"
read option
case $option in
[Dd] ) echo "You have chosen to Display student" ;;
[Aa] ) echo "You have chosen to Add a student" ;;
[Ee] ) echo "You have chosen to Edit a student" ;;
[Ss] ) echo "You have chosen to Sort a student" ;;
[Hh] ) echo "You have chosen Help" ;;
[Xx] ) echo "You have chosen to Exit" ;;
esac
If the user choose e for edit I would like the screen display the Edit Menu on the screen like this:
You have chosen to Edit\delete a student:
1)Edit Student
2)Delete Student
3)Help
4)Exit to Main Menu
Enter Selection >
Do I write a script for the edit menu and then insert below
[Ee] ) echo "You have chosen to Edit a student"
clear
while true
do
edit.text
or someting like this to have the second level of menu options run?