#!/bin/sh name=`ls ./` for i in $name;do aaa=`find $i -type f |xargs ls -ltr|tail -1|awk -F" " ‘{print $6$7" "$8}‘` count=`find $i -type f -exec ls -l {} \; |wc -l` echo $i " " $count " " $aaa done
查找目录下最后上传文件时间,和目录下文件数量
时间: 2024-10-05 03:02:12
#!/bin/sh name=`ls ./` for i in $name;do aaa=`find $i -type f |xargs ls -ltr|tail -1|awk -F" " ‘{print $6$7" "$8}‘` count=`find $i -type f -exec ls -l {} \; |wc -l` echo $i " " $count " " $aaa done
查找目录下最后上传文件时间,和目录下文件数量