Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jrwarwick/dfacce7b84a15a5c936693d306421849 to your computer and use it in GitHub Desktop.
Save jrwarwick/dfacce7b84a15a5c936693d306421849 to your computer and use it in GitHub Desktop.
Convenience command to generate a command to "pull via scp (elsewhere)" a file in local FS
function getcmd () { echo $1; find `pwd` -name "*$1*" | sed "s/^/scp $USER@$HOSTNAME:/"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment