Skip to content

Instantly share code, notes, and snippets.

@zhaofeng-shu33
Last active August 8, 2021 02:44
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 zhaofeng-shu33/6b7e4d828178200a5fe31f14fee6d7f7 to your computer and use it in GitHub Desktop.
Save zhaofeng-shu33/6b7e4d828178200a5fe31f14fee6d7f7 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -f "$1" ]; then
scp ./$1 feng@10.8.6.22:/home/feng/Downloads/
else
scp feng@10.8.6.22:/home/feng/Downloads/$1 ./
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment