Skip to content

Instantly share code, notes, and snippets.

@windowsrefund
Forked from eiwe/gist:3124549
Created July 16, 2012 20:26
Show Gist options
  • Save windowsrefund/3124813 to your computer and use it in GitHub Desktop.
Save windowsrefund/3124813 to your computer and use it in GitHub Desktop.
Bash script to copy a list of files with you everywhere you go
#!/bin/bash
[ $# -eq 0 ]&&exit 1
h=$1;shift;cd;s=ssh
[ -s ~/.c ]&&tar -hcf- `cat ~/.c`|$s $h 'tar -xf -'
$s $h "$@";cd `pwd`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment