Advertisement
luisg_muniz

menu-1.ksh

Dec 15th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/ksh93
  2. # Ejemplo de menu con select+case
  3.  
  4. PS3="Elija una opcion ...> "
  5. select op in fecha hora mes salir
  6. do
  7.         case "$op" in
  8.                 fecha)    date +%F ;;
  9.                 hora)     date +%H:%M:%S ;;
  10.                 mes)      cal ;;
  11.                 salir)    break ;;
  12.         esac
  13. done
  14. print "Fin."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement