Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/ksh93
- # Ejemplo de menu con select+case
- PS3="Elija una opcion ...> "
- select op in fecha hora mes salir
- do
- case "$op" in
- fecha) date +%F ;;
- hora) date +%H:%M:%S ;;
- mes) cal ;;
- salir) break ;;
- esac
- done
- print "Fin."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement