Recursive file sizes (filtered by file type)
April 9th, 2009
I had to find out the size of all our images on a site today. This was the easiest and fastest way to do it
CODE:
-
find /home/username/public_html -name '*.png' -printf "%s\n"|awk '{sum+=$0}END{print sum}'