dir_management.sh~

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

SH~
46
字号
#!/bin/ksh -. $HOME/cms/include/cms.h. $HOME/cms/func/mountusb. $HOME/cms/func/umountusb.sh. $HOME/cms/func/lookup. $HOME/cms/func/copyfile. $HOME/cms/func/decompass. $HOME/cms/func/compass. $HOME/cms/func/move_to_usbdir_management(){while :do   erase_fun 4 20   #hide_cursor   xy 5 22 "******Directory Management******"    xy 6 23 "1.Find files        2.Copy files"
   xy 7 23 "3.Mount UDisk       4.Umount UDisk"
   xy 8 23 "5.Decompress files  6.Compress files"
   xy 9 23 "7.Move to UDisk     q.Return"
   xy 11 21 "Please choice [1|2|3|4|5|6|7|q|Q]:"   fdisk -l > $HOME/cms/temp/tmp1.txt   #display_cursor   read choice1   case $choice1 in   1)lookup     sleep 2;;   2)copyfile     ;;   3)mountusb     ;;   4)umountusb     ;;   5)decompass     ;;   6)compass     ;;   7)move_to_usb     sleep 2     ;;   q|Q)return 0;;   *)hint_msg "Wrong choice [${choice1}],Please choice [1|2|3|4|5|6|7|q|Q]..."   esacdone}

⌨️ 快捷键说明

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