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地址