I have created a main menu in the following way:
while true; do
echo " "
echo "Main Menu: "
echo "Please Select An Option Using The Options Provided."
echo " "
echo "1 - Search All Files"
echo " "
echo "2 - Search Individual Files"
echo " "
echo "q - Quit"
echo " "
echo "Please enter your option: "
read CHOSEN_KEY
case $CHOSEN_KEY in
1) echo " "
echo "Thank You For Selecting Search All Files"
break;;
2) echo " "
echo "Thank You For Selecting Individual Search"
break;;
q) echo " "
echo "Goodbye"
exit;;
esac
done
What i want to know is, if the user selects option 2 how do i get the code to redirect to another path. I know it is something to do with the break after option 2 is selected but what to i type to make the code go somewhere else?