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