⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file_operation.sh~

📁 机房管理系统
💻 SH~
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -