From ddf9072d3721d7d5fd7ae35934c0206a99317cd8 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Fri, 28 Jul 2023 10:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function/function.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/function/function.sh b/function/function.sh index bee9364..6ccf1ef 100644 --- a/function/function.sh +++ b/function/function.sh @@ -4,7 +4,8 @@ source ../main.sh show_file(){ filer=$1 - find /data/update/$filer -printf "%-40f\t%TY-%Tm-%Td %TH:%TM:%TS\n" + #ls /data/update/$filer/ | tr ' ' '\n' + find /data/update/$filer -maxdepth 1 \( -type f -o -type d \) -printf "%-20f\t%TY-%Tm-%Td %TH:%TM:%TS\n" } # 判断一个字符串是否是合法的IP地址