Last active
August 29, 2015 14:01
-
-
Save bdombro/159f9e153798c61f6735 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
#!/bin/bash | |
if [[ "$#" == 0 ]]; then | |
echo " | |
Version 1.0 | |
Fancy zcat that shows progress. | |
Arg should be a gziped file ending in .gz | |
Syntax: bzcat <path_to_file_or_folder> | |
" | |
exit | |
fi | |
SRC=$1 | |
gunzip -c $SRC | pv -s $(gzip -l $SRC | awk '{print $2}' | sed -n 2p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment