Skip to content

Instantly share code, notes, and snippets.

@raygunsix
Created February 6, 2013 21:30
Show Gist options
  • Save raygunsix/4726031 to your computer and use it in GitHub Desktop.
Save raygunsix/4726031 to your computer and use it in GitHub Desktop.
# http://stackoverflow.com/questions/226703/how-do-i-prompt-for-input-in-a-linux-shell-script
echo "Configure which type of server?"
select yn in "App" "Database"; do
case $yn in
App ) TYPE="app"; break;;
Database ) TYPE="db"; break;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment