My file system is set up like:
/ftp/data/ProductGroup*/ProductType*/Year*/Day*/ActualProductFile*
("*"denotes directory names that change)
I'd like to find out how much space is being used for 2011 products. Something like
du -ks /ftp/data/*/*/2011
However, I need the sum of all these directories - there are hundreds of them and I don't want to have to add them all up (too error prone!)
Would anyone have a suggestion?
du's-coption isn't what you are looking for? – llua Dec 27 '12 at 18:15duimplementations support the-coption as that's not a standard option. – Stephane Chazelas Dec 27 '12 at 18:33