Created
September 6, 2016 22:28
-
-
Save thedoc31/c84e25220cc34d26c6750232d3cf5538 to your computer and use it in GitHub Desktop.
multiscp
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
#usage | |
#multiscp source_file.zip destination_ip_list.txt | |
#destination_ip_list.txt should only have IP addresses | |
multiscp(){ | |
for dest in $(cat "$2"); do | |
scp "$1" ${dest}:/home/username | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment