文件统计
#!/bin/sh
name=`ls ./`
echo "name upfiles count lasttime"
for i in $name;do
#aaa=`find $i -type f |xargs ls -ltr|tail -1|awk -F" " '{print $6$7" "$8}'`
#echo "find $i -type f |xargs ls -ltrR|tail -1"
timelast=`find $i -type f |xargs ls -ltrR|tail -1 |awk -F" " '{print $6$7" "$8}'`
count=`find $i -type f -exec ls -l {} \; |wc -l`
echo $i " " $count " " $timelast
#echo '--------------------------------------------'
done
查找目录下最后上传文件时间,和目录下文件数量