Skip to content

Instantly share code, notes, and snippets.

@deskangel
Created January 30, 2022 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deskangel/c626bd20d6d897374360a44771b7965e to your computer and use it in GitHub Desktop.
Save deskangel/c626bd20d6d897374360a44771b7965e to your computer and use it in GitHub Desktop.
scp handy functions
#!/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