Advertisement
SyP-

menu

Oct 22nd, 2020
2,619
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. OP=z
  4. #while [ $OP != 'q' ]
  5. while :
  6. do
  7.     echo "Menú de opciones:"
  8.     echo "1- Listar usuarios del sistema que puedan iniciar sesión"
  9.     read -p "Ingrese la opción deseada. Presione 'q' para salir: " OP
  10.  
  11. case $OP in
  12.     1) echo "Usuarios del sistema con inicio de sesión habilitado: "; read -p "Presione enter para volver al menú principal";  clear
  13.     ;;
  14.     q) break
  15.     ;;
  16.     *) echo "elija una opcion"
  17.     ;;
  18. esac
  19.  
  20. done
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement