for a in {1..6} ; do scp /etc/hosts enc-bigdata0$a:/etc/hosts ; done 转载于:https://www.cnblogs.com/net2817/p/8057409.html