public
Last active

simple shell script to download a tar archive and extract it directly

  • Download Gist
getar
Shell
1 2 3 4 5 6 7
#!/bin/sh
CURL=`which curl`
TAR=`which tar`
path=$1
shift
params=$*
$CURL $path | $TAR -x $params
usage
1
getar http://path/to/tar [tar arguments]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.