Skip to content

Instantly share code, notes, and snippets.

@themasch
Created May 23, 2011 12:25
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 themasch/986609 to your computer and use it in GitHub Desktop.
Save themasch/986609 to your computer and use it in GitHub Desktop.
simple shell script to download a tar archive and extract it directly
#!/bin/sh
CURL=`which curl`
TAR=`which tar`
path=$1
shift
params=$*
$CURL $path | $TAR -x $params
getar http://path/to/tar [tar arguments]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment