shell 查看指定某一天文件的总大小
ls -al --time-style=+%D | grep `date +%D -d "5 day ago"` |awk '{print $5}' |awk 'BEGIN{sum=0}{sum +=$1}END{print sum}'
ls -al --time-style=+%D | grep `date +%D -d "5 day ago"` |awk '{print $5}' |awk 'BEGIN{sum=0}{sum +=$1}END{print sum}'
评论已关闭