main
PC-202302260912\Administrator 2023-08-01 16:25:14 +08:00
parent a6ebc49eb6
commit e2c499a351
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ is_valid_ip() {
# 显示指定目录下的文件或目录
show_file(){
filer=$1
find /data/update/"$filer" -maxdepth 1 \( -type f -o -type d \) -printf "%-20f\t%TY-%Tm-%Td %TH:%TM:%TS\n" | sort -n
find /data/update/"$filer" -maxdepth 1 \( -type f -o -type d \) -printf "%T@\t%-20f\n" | sort -n | awk '{print $2"\t"strftime("%Y-%m-%d %H:%M:%S", $1)}'
}
# 发包并解压缩