find command help

hi,
i have a selection of directories on a filesystem and i want to know the total size of the lot of them.

I can list the contence of them with:

find /mystuff/*/*/work/*/prog/images/

but how do i get there total size?

thanks for any help

check if this is what you want:

du -sk /path/to/dir

man du for details

yes i know that.

its not one directory, its hundreds. i want the total size of all of them together.

ok,
this is how i did it:

 
du -sk /mystuff/*/*/work/*/prog/images | awk '{total = total + $1;} END {print total}' 

though im guessing there is an easyier way

Do you not have the -c option for du which is "Display a grand total"?? I would also use the -h option for more readability.

du -ch /mystuff/*/*/work/*/prog/images

Cheers,
Nate