Created
May 23, 2011 12:25
-
-
Save themasch/986609 to your computer and use it in GitHub Desktop.
simple shell script to download a tar archive and extract it directly
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
#!/bin/sh | |
CURL=`which curl` | |
TAR=`which tar` | |
path=$1 | |
shift | |
params=$* | |
$CURL $path | $TAR -x $params |
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
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