Advertisement
angeldp

lotoSaul.sh

Jun 2nd, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Script de Saul
  4.  
  5. # Limpiando la pantalla.
  6. clear
  7. # Definiendo velocidad de animaciones
  8. VEL=0.7
  9.  
  10. # Este es un script sarcástico, por favor, no tomar a ofensa.
  11. FILE=100
  12. echo -e "\t\t== Introduce el comando ls ==\n"
  13.  
  14. # Simulando el prompt. --Muy bueno ésto--
  15. read -p "${USER}@${HOST}:~$ " VAR
  16.  
  17. # Comprobando la ejecución del comando ls.
  18. if [ "$VAR" != "ls" ]
  19.     then
  20.     echo -e "\nCapullo, te quedas sin premio"
  21.     exit
  22. fi
  23. echo "Accediendo a la cuenta de $USER"
  24. echo -n -e "\r—"
  25. sleep $VEL
  26. echo -n -e "\r\\"
  27. sleep $VEL
  28. echo -n -e "\r|"
  29. sleep $VEL
  30. echo -n -e "\r/"
  31. sleep $VEL
  32. echo -n -e "\r—"
  33. sleep $VEL
  34. echo -n -e "\r\\"
  35. sleep $VEL
  36. echo -e "\r|\n"
  37.  
  38. # Comprobando si existen o no archivos de la lotería.
  39.  
  40. if [ -f "$FILE" ]
  41.     then
  42.     for i in `seq 100 110`
  43.         do
  44.         clear
  45.         echo -e "Fraude a hacienda\n\n\n"
  46.         echo -n  "Retirando de la cuenta: ${i}€"
  47.         rm ${i}
  48.         sleep $VEL
  49.     done
  50.     clear
  51.  else
  52.     for i in `seq 100 110`
  53.         do
  54.         clear
  55.         echo -e "Has ganado la lotería\n\n\n"
  56.         echo -n "Ingresando en cuenta: ${i}€"
  57.         touch ${i}
  58.         sleep $VEL
  59.     done
  60.     clear
  61. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement