Skip to content

Instantly share code, notes, and snippets.

@binhp
Last active October 23, 2018 04:39
Show Gist options
  • Save binhp/5e978eaa6af86e35ea9f6d3ee23eca45 to your computer and use it in GitHub Desktop.
Save binhp/5e978eaa6af86e35ea9f6d3ee23eca45 to your computer and use it in GitHub Desktop.
Common Bash Commands as Util Functions
## wget *.tar.gz to stdout and g-unzip
function wgetgz(){
wget -q -O - $1 | tar -zxv --directory "${2:.}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment