Print the total bytes of files in a directory grouped by date
ls -l|awk 'length($6)==3{x[$6" "$7]+=$5};END{for(i in x)printf"%s:\t%d\n",i,x[i]}'
Leave a Reply
You must be logged in to post a comment.
ls -l|awk 'length($6)==3{x[$6" "$7]+=$5};END{for(i in x)printf"%s:\t%d\n",i,x[i]}'
You must be logged in to post a comment.