1. 批量执行scp
# 将本机文件批量复制到 192.168.1.1-10 这10台服务器上
for i in {1..10};do scp /etc/yum.repos.d/CentOS-Base.repo 192.168.1.${i}:/etc/yum.repos.d/;done
# 将本机文件批量复制到 192.168.1.1-10 这10台服务器上
for i in {1..10};do scp /etc/yum.repos.d/CentOS-Base.repo 192.168.1.${i}:/etc/yum.repos.d/;done