I have a simple bash problem - I have written a bash script which is actually a simple menu structure. I am using "until" loops for it, but I want to be able to press the key for the option and have it change menu, I don't want to have to press enter after every key.
This is what the structure looks like:
until [ "$utilities_selection" = "0" ]; do
echo "screen full of options"
case $utilities_selection in
1 ) clear ; df ; press_enter ;;
2 ) clear ; free ; press_enter ;;
0 ) clear ; confirm_exit ;;
* ) echo -n "Please enter a valid selection" ;
Is there something I can change about the first line that will enable me to not have to press enter after choosing a selection?
Thanks in advance,