I found some code in one of the answers here and accommodated it to my needs but now I have two questions:
Q1: how can I display the options text after the code in case statement finishes? So the user can see the options again.
Q2: Can I make it so that every option is displayed on its own line when I run the script? Currently it is not.
options=(
"quit/exit"
"new rational db"
"run php for rational codebase"
"run php for playground codebase"
)
select option in "${options[@]}"; do
case "$REPLY" in
1) break;;
2) sudo -i -u db2inst1 bash -c "db2stop force;";;
3) rm /tmp/createDb2*;;
4) ;;
esac
done