1.Shell循环:for
语法结构
预定义变量
案例1: ping测试主机
案例2: 通过用户列表文件创建用户
案例3:使用for实现批量主机root密码的修改
2.Shell循环:while until
3.expect
示例2 expect实战:公钥推送