Created
April 15, 2019 16:43
-
-
Save brianyoungblood/ba080471843f9d4f61bae5b3f8852dcb to your computer and use it in GitHub Desktop.
get gzip file size in GB, if it was to be uncompressed
This file contains hidden or 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
gzip -dc thefile.gz | wc -c | awk '{$1=$1/1024/1024/1024; print $1,"GB";}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment