Show me how much space I've got of thumbnails

find . -name thumbs -type d -exec du {} \; | awk '{total +=$1} END {print total}'

Squash image files bigger than 400k

find . -iregex '.*\.\(gif\|jpg\|jpeg\|bmp\|png\)' -size +400k -exec ls -s {} \; | awk '{total = total + $1} END {print total}'

-- MattWalsh - 08 Apr 2005

Topic revision: r2 - 08 May 2005 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback