Skip to content

Instantly share code, notes, and snippets.

@ScrambledBits
Created April 4, 2012 18:56
Show Gist options
  • Save ScrambledBits/2304739 to your computer and use it in GitHub Desktop.
Save ScrambledBits/2304739 to your computer and use it in GitHub Desktop.
Decompress a remote tar file
#!/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