#!/bin/bash ## Edit by wangsuipeng ## 20170223 ## 目的:逐行读取ip地址,并通过ex脚本执行远程操作 ## USAGE: bash changeid for i in `cat ip` do host=$i ./ex $host & done