文件统计

#!/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

 

查找目录下最后上传文件时间,和目录下文件数量

 

相关文章
相关标签/搜索