Advertisement
angeldp

bucleUntilBash01.sh

May 28th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. # bucleUntilBash01.sh
  3. # Autor: angeldp
  4. # Ejemplo de un bucle sencillo del que no se saldrá hasta
  5. # que la variable PASS sea 1234
  6. # Defino la variable PASS como 0
  7. PASS="0"
  8. # Creo el bucle (hasta que la contraseña sea igual a 1234...)
  9. until [ "$PASS" = "1234" ]
  10.     do
  11.     clear
  12.     read -s -p "Introduzca su contraseña de acceso: " PASS
  13. done
  14. echo –e “\n\n¡Acertaste!\n\n”
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement