On Fri, Jun 25, 2010 at 1:47 PM, Josh Frome <[email protected]> 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? > > How about using the -c option to du? find . -iname "*pic*" -type d | xargs du -shc -c should give you a total of all dirs listed. --Bob /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
