I want to take the input from the user, which could be any of the given options, I tried using select, but it just goes in loop, doesn't come out, is there a way i can make it to come out and proceed after the user has entered right option, here is the sample code:
select envir in "prod" "uat" "dev"; do
echo $envir
done
//continue with the script
echo "out of select"
Once user selects any of the available options, it should come out and continue with the scripts, if the user has entered anything else, it should keep on prompting.