Bash Script to let user choose from a list or enter their own
问题 I have a simple script which i want to list some pre-filled choices or for the user to enter a number to correlate with a build This is what I have currently. read -p "Please select from the list below or enter the build number you would like to download " build case {build} in Latest) build=lastSuccessful break;; *) break;; esac The problem is that is doesn't provide a list for the user to choose. Ideally it would look something like this Build Choices 1) Latest 3) Successful 5) pick a build