Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- n=1
- while [ $n = 1 ]
- do
- clear
- echo "Texto o Salir (t/s)"
- read opcion
- case "$opcion" in
- t|T)
- clear
- echo "Hola Mundo"
- sleep 3
- n=2
- ;;
- s|S)
- n=2
- ;;
- help)
- clear
- echo "Presiona s para salir"
- echo "Presiona t para mostrar texto"
- sleep 3
- ;;
- *)
- clear
- echo "Opcion incorrecta"
- echo "Presiona help para obtener ayuda"
- sleep 3
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement