- 利用sed命令查找替换IP, 配合gosh: 基于ssh协议的运维工具,支持批量远程执行命令,下发文件、启动代理方便进行远程批量操作。
利用sed命令查找替换IP
#src
eth0ipsrc=ipsrc1
eth1ipsrc=ipsrc2
#dst
eth0ip=ipdst1
eth1ip=ipdst2
#src
eth0ipsrc=ipsrc1
eth1ipsrc=ipsrc2
#dst
eth0ip=ipdst1
eth1ip=ipdst2