How to see combined file sizes from Mac.Finder?

curiouswebster
curiouswebster used Ask the Experts™
on
I wold like to scan my disk for all JPGS and se how large they all add up to. If I right click the selected files and pick "Get Info", Finder opens thousands of little windows.

I want to see the combined sizes of all JPGS.

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018
Commented:
Best to write a script to do this. I'd likely use PERL + run find as in...

find /path-to-images -name "*.jpg" -printf '%s %p\n'

Open in new window


To return size + full path, then do whatever math you like on subset of images you locate with find.
curiouswebsterSoftware Engineer

Author

Commented:
I do not know PERL. Any other options?
Distinguished Expert 2017
Commented:
what options do you have available to you?
terminal window ls -l | awk ' { print $NF,$5 } '  ....of contents
get the resulting data into a speadsheet and sum the column where the
curiouswebsterSoftware Engineer

Author

Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial