1
I'm trying to get the total size of all the JPEGs in a particular folder, but no amount of combinations of options while piping to du
seems to make this work:
find -type f -iname "*.jpg" | du -sch
166G .
166G total
All of them print the total of every file in the directory.
How do I get only the total file size of the files that I'm passing to du
?
1Wow, I didn't even know this was possible, and didn't see it referenced anywhere else while looking. Thank you. – Hashim – 2020-01-16T19:06:59.950