I am trying to display the text the user selects from a bash menu. The below will display the menu and allow the user to enter a number, but will not display the choice selected.
bash
while true
do
printf "\n please make a selection from the MENU \n
==================================
\t 1 Incidental Findings
\t 2 CHARGE Syndrome
\t 3 PFS
==================================\n\n"
printf "\t Your choice: "; read menu_choice
echo "$1"
done
So if the user selects 2 from the menu , then CHARGE Syndrome is displayed. Thank you :).