Last active
May 2, 2021 21:11
-
-
Save troynt/51974da73305b0d86980006e76511de6 to your computer and use it in GitHub Desktop.
Drag and Drop files in Windows to SCP to remote host.
This file contains 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
bash -c "path_exec=$(echo \"%1\" | sed 's/[[:space:]]\([A-Z]:\)/\n\1/g' | sed 's/[A-Z]:/\/mnt\/\L&/g' | tr '\\' '\/'\'); path_exec="${path_exec//:}"; scp \"$path_exec\" ubuntu:~; sleep 2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment