Total size of multiple directories
Matthew Walker
mwalker at kydance.net
Fri Jun 25 13:52:48 MDT 2010
Use awk to sum the size field of each file returned by find:
http://www.liamdelahunty.com/tips/linux_ls_awk_totals.php
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: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>
--
Matthew Walker HAM Call Sign: N7TOX
Kydance Hosting & Consulting, Inc. - http://www.kydance.net/
PHP, Perl, and Web Development - Linux Server Administration
More information about the PLUG
mailing list