Skip to content

Instantly share code, notes, and snippets.

@thedoc31
Created September 6, 2016 22:28
Show Gist options
  • Save thedoc31/c84e25220cc34d26c6750232d3cf5538 to your computer and use it in GitHub Desktop.
Save thedoc31/c84e25220cc34d26c6750232d3cf5538 to your computer and use it in GitHub Desktop.
multiscp
#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