I have an directory structure like this:
- application1
- application1_edit
- application2
- application2_edit
Is there any way to get the total size for every folder (including sub-directories) and exclude all folders with _edit
in name?
I have tried du -s
on the root folder, but it lists all sub-directories.
ls | grep -v "_edit" | xargs du -s
in the root folder?