Total size of multiple directories

Matthew Walker mwalker at
Fri Jun 25 13:52:48 MDT 2010

Use awk to sum the size field of each file returned by find:

On Fri, June 25, 2010 1:47 pm, Josh Frome wrote:
> All,
>      I'm looking for a way in bash to display the sum total size of multiple
> directories.  Think 'du -sh', but only include certain directories.
>  Ideally, I'm looking for something I can use with 'find' to get a quick
> idea of how much space a group of directories is using.  Any ideas?
> Josh
> /*
> PLUG:, #utah on
> Unsubscribe:
> Don't fear the penguin.
> */

Matthew Walker                          HAM Call Sign: N7TOX
Kydance Hosting & Consulting, Inc. -
PHP, Perl, and Web Development - Linux Server Administration

More information about the PLUG mailing list