user_manager.sh

来自「机房管理系统」· Shell 代码 · 共 45 行

SH
45
字号
#!/bin/ksh#鐢ㄦ埛绠$悊鍏ュ彛绋嬪簭user_manager(){   while :   do         #娓呴櫎灞忓箷      erase_fun 4 20      hide_cursor            xy 6   28 "1. Select the UserInfo"      xy 7   28 "2. Add User"      xy 8   28 "3. Delete User"      xy 9   28 "4. Modify the UserInfo"      xy 10  28 "5. Modify the Pasword"      xy 11  28 "q. EXIT"            xy 13 28 "Please Choice[1|2|3|4|5|q|Q]:"            display_cursor            read _CHOICE_2            case $_CHOICE_2 in      1)user_query      ;;      2)user_add      ;;      3)user_del      ;;      4)user_mod      ;;      5)user_chg_pwd      ;;      q|Q) return 0      ;;      *) hint_msg "Wrong choice [${_CHOICE_2}],Please choice[1|2|3|4|5|q|Q]"      ;;      esac   done}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?