Created
July 27, 2022 21:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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