| by Scott Kilroy | No comments

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]}'

Share Button

Leave a Reply