read -p "Confirm (y/n)? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then # get cursor on next line (optional) echo # do dangerous stuff here fi
No comments:
Post a Comment