Bash confirmation


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. read -p "do you want to continue?" -n 1 -r
  2. if [[ $REPLY =~ ^[Yy]$ ]]
  3. then
  4. #do whatever you are checking on
  5. fi

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.