Skip to content

Instantly share code, notes, and snippets.

@useless
Created March 19, 2010 13:48
Show Gist options
  • Save useless/337509 to your computer and use it in GitHub Desktop.
Save useless/337509 to your computer and use it in GitHub Desktop.
Compare application bundle sizes to size of binaries in Mac OS X.
# Compare application bundle sizes to size of binaries in Mac OS X.
du -sk /Applications/
du -sk /Applications/*.app/Contents/MacOS | awk '{total=total+$1} END {print total}'
# Size of designable.nib files. Requires up-to-date locatedb.
locate /Applications/*designable.nib | xargs -I P du -sk 'P' | awk '{total=total+$1} END {print total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment