- #!/bin/bash
- echo "This will <do this>"
- echo "This change is irreversible"
- ask_them () {
- while true; do
- echo -n " Do you wish to continue? (y/n): "
- read Yn
- case $Yn in
- y|Y) echo "do this"; echo "do that"; break ;;
- n|N) echo "ok, done"; exit 0 ;;
- *) echo "Please type either y or n" ;;
- esac
- done
- }
- ask_them
SHARE
TWEET
Untitled
a guest
Jul 1st, 2012
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

