Tag Archives: macOS

MacHeist $9.99 bundle (not a sponsored post)

MacHeist $9.99 bundle (not a sponsored post)

App bundles come and go, but this is the first one I’ve actually sprung for, and if you’re a Mac user, you might want to too. I’m picking it up for xScope and Fantastical, but a couple of the other apps look interesting too.

It doesn’t hurt that 10% of bundle sales are donated to charities. And extra apps are unlocked for all purchasers when sales targets are hit.

Clicky clicky!

OS X terminal tip: get total bytes in all files in this folder

So, you want to know exactly how many bytes are in all of the files under a given directory, and you only have a Mac OS X terminal to work with?

It should be easy, but it’s not.

Here, I’ll save you some time:

find . -type f -not -iname .ds_store -print0 | xargs -0 stat -f %z | awk '{s+=$1} END {print s}'

Of course I’m assuming you don’t want any of those nasty .DS_Store files to be counted.