Created
April 4, 2012 18:56
-
-
Save ScrambledBits/2304739 to your computer and use it in GitHub Desktop.
Decompress a remote tar file
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/bash | |
USER=$1 | |
SERVER=$2 | |
FILE_PATH=$3 | |
ssh $USER@$SERVER "cat $FILE_PATH" | tar zxvf - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment