Created
November 8, 2015 02:55
-
-
Save techieshark/449c78ebf2df7c6a1907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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