Created
January 30, 2022 13:36
-
-
Save deskangel/c626bd20d6d897374360a44771b7965e to your computer and use it in GitHub Desktop.
scp handy functions
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
#!/bin/bash | |
LOCAL_ARGS="${@:1:$(($#-1))}" | |
LAST_ARGS="${@:$#}" | |
set -x | |
scp $LOCAL_ARGS root@192.168.1.1:$LAST_ARGS | |
set +x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment