Advertisement
hackloper775

Ejemploshehile

Sep 22nd, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. n=1
  4. while [ $n = 1 ]
  5. do
  6.  
  7.     clear
  8.     echo "Texto o Salir (t/s)"
  9.     read opcion
  10.  
  11.     case "$opcion" in
  12.  
  13.         t|T)
  14.         clear
  15.         echo "Hola Mundo"
  16.         sleep 3
  17.         n=2
  18.         ;;
  19.         s|S)
  20.         n=2
  21.         ;;
  22.         help)
  23.                 clear
  24.         echo "Presiona s para salir"
  25.         echo "Presiona t para mostrar texto"       
  26.         sleep 3
  27.         ;; 
  28.         *)
  29.         clear
  30.         echo "Opcion incorrecta"
  31.         echo "Presiona help para obtener ayuda"
  32.         sleep 3    
  33.         ;;
  34.  
  35.     esac
  36. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement