du --exclude='pattern' only opposite?
Is there a way to find disk usage for a particular file pattern (ie. '*.tmp')?
|
Code:
du -sh /path/to/file |
Quote:
Code:
Synopsis Code:
~$ du -sk /tmp |
From what I've read, the "--files0-from=F" option lets me input filenames from a text file or stdin but neither does what I want. And I'm not looking to see the disk allocation from a directory. I want to see the disk usage by file pattern (ie. *.iso) in the current directory and sub-directories. Something like "du -sk *.bak" which doesn't work.
|
Maybe using something like
Code:
find . -name \*.iso -exec du {} + Code:
find . -name \*.iso -printf "%k\t%p\n" |
Sweet, thank you very much.
|
All times are GMT -5. The time now is 11:36 PM. |