Skip to content

Instantly share code, notes, and snippets.

@v1nc3ntlaw
Created March 10, 2010 06:33
Show Gist options
  • Save v1nc3ntlaw/327591 to your computer and use it in GitHub Desktop.
Save v1nc3ntlaw/327591 to your computer and use it in GitHub Desktop.
post files inside shell scripts and self extract
$ tar cvvf archive.tar *
$ echo 'uudecode -o- << "EOF" | tar xvv ' > shellscript
$ uuencode archive.tar archive.tar >> shellscript
$ echo 'EOF' >> shellscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment