shell 查看指定某一天文件的总大小

Posted by wukaiqiang; tagged with none

ls  -al --time-style=+%D | grep `date +%D -d "5 day ago"` |awk '{print $5}' |awk 'BEGIN{sum=0}{sum +=$1}END{print sum}'