I've tried to list the size of subdirectories of the directory home just taking the files with pdf extension.
I tried the next
ls $home -d /* | xargs du -sb --exclude="!(*.pdf)"
Is there any
--include option for
du? or what should be the right pattern in the exclude option?