📄 stu_before_after.sh
字号:
#!/bin/sh -stu_before_after(){ #娓呴櫎灞忓箷
#erase_fun 4 20
#闅愯棌鍏夋爣
#hide_cursor echo "***Directory Management***"
echo "*1.Find files"
echo "*2.Copy files"
echo "*3.Mount UDisk"
echo "*4.Decompress files"
echo "*5.Compress files"
echo "*6.Move to UDisk"
echo "*7.Umount UDisk"
echo "*q.Return"
echo "Please choice [1|2|3|4|5|6|7|q|Q]:"
fdisk -l >tmp1.txt
read x
case $x in
1)echo "Please input the filename you want to find:"
read _FILE1
find -name "$_FILE" -print;;
2)echo "Please input the source filename you want to copy:"
read _SRC
echo $
echo "Please input the destinate you want to copy:"
read _DST
cp -arf $_SRC $_DST;;
3)mountusb;;
4)gunzip;;
5)gzip;;
6)ehco "Please input the filename you want move to UDisk:"
read _FILE2
echo "Move to UDisk..."
mv -arf $_FILE2 /mnt;;
7)umountusb;;
q|Q)return 0;;
*)echo "Invalid option"
esac}stu_before_after
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -