Skip to content

Instantly share code, notes, and snippets.

@jeremiahmarks
Created March 30, 2014 10:07
Show Gist options
  • Save jeremiahmarks/9870542 to your computer and use it in GitHub Desktop.
Save jeremiahmarks/9870542 to your computer and use it in GitHub Desktop.
bash confirmation
read -p "do you want to continue?" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
#do whatever you are checking on
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment