file_operation.sh~

来自「机房管理系统」· SH~ 代码 · 共 35 行

SH~
35
字号
#!/bin/ksh#. $HOME/cms/include/cms.hfile_operation(){   while :   do      erase_fun 4 20      hide_cursor      xy 6  24 "***Stu File Operation***"         xy 7  28 "1. Create Files"      xy 8  28 "2. Modify Files"      xy 9  28 "3. Delete Files"      xy 10 28 "q. Return"           xy 12 28 "Please choice [1|2|3|q|Q]:"      display_cursor      read _CHOICE_9           case $_CHOICE_9 in        1)xy 14 7 "The new file name is "          read _FILENAME          mkdir /home/$_USER_ID/$_FILENAME;;        2)xy 14 7 "Please input the filename you want to modify:"          read _FILENAME2          xy 15 7 "The new filename:"          read _FILENAME3          mv -f $_FILENAME2 $_FILENAME3;;        3)xy 14 4 "You can only delete your own files..Please input the filename..."          read _FILENAME4          rm -rf $_FILENAME4;;        q|Q) return 0;;        *) hint_msg "Wrong choice [${_CHOICE_9}],Please choice [1|2|3|4|q|Q]";;      esac   done}

⌨️ 快捷键说明

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