#!/bin/shspa
name=`ls ./`code
echo "name upfiles count lasttime"blog
for i in $name;doast
#aaa=`find $i -type f |xargs ls -ltr|tail -1|awk -F" " '{print $6$7" "$8}'`class
#echo "find $i -type f |xargs ls -ltrR|tail -1"awk
timelast=`find $i -type f |xargs ls -ltrR|tail -1 |awk -F" " '{print $6$7" "$8}'`file
count=`find $i -type f -exec ls -l {} \; |wc -l`im
echo $i " " $count " " $timelastimg
#echo '--------------------------------------------'di
done
查找目錄下最後上傳文件時間,和目錄下文件數量