Tuesday, January 06, 2009

How to recursively list the total size of select files in a linux directory

The command below will list the total size of all jpg's in the foo directory.
$foo> find . -name *.jpg | xargs du -hc

0 comments: