Skip to content

Instantly share code, notes, and snippets.

@techieshark
Created November 8, 2015 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techieshark/449c78ebf2df7c6a1907 to your computer and use it in GitHub Desktop.
Save techieshark/449c78ebf2df7c6a1907 to your computer and use it in GitHub Desktop.
# want to quickly see how large (in bytes) a file is after we gzip it, without actually gzipping it
# on command line, running the following does the trick: gzip -c file.js | wc -c
# we can add this little bit to our .bashrc so we can instead just type gsize file.js
gzipSize() {
gzip -c $1 | wc -c
}
alias gsize=gzipSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment