Skip to content

Instantly share code, notes, and snippets.

@emreberge
Created January 17, 2012 21:56
Show Gist options
  • Save emreberge/1629193 to your computer and use it in GitHub Desktop.
Save emreberge/1629193 to your computer and use it in GitHub Desktop.
Creates a scp compatiable path for the specified file. "my-username@my-hostname:/path/to/specified/file"
#!/usr/bin/env sh
echo "$(whoami)@$(hostname -f):$(cd "$(dirname $1)" && pwd)/$(basename $1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment