A veces necesito preguntarle al usuario sí / no para confirmar algo. Usualmente uso algo como esto: # Yes/no dialog. The first argument is the message that the user will see. # If the user enters n/N, send exit 1. check_yes_no(){ while true; do read -p "$1" yn if [ "$yn" = "" ]; then yn='Y'...