I know about du -sh which gives me total disk space used for given directory.
My problem is the directories I am interested are scattered in lot of subdirectories. I have right "find" command that gives me these directories. Goal is to pass directories found and get total disk space used by these directories
If I pass these directories as arguments to du I get total used for that directory, but no grand total. I want to get the grand total.
du -sh dir1 dir2 gives output something like follows
What do I need to do to get the grand total?