标签:shell
[root@DBBK1 changeIP]# cat view.sh #!/bin/sh if [ $# -ne 1 ];then echo "USAGE:/bin/sh $0 ARG1" exit 1 fi for n in `cat ip.txt` do echo =======172.22.10.$n======== ssh root@172.22.10.$n "$1" done [root@DBBK1 changeIP]# cat ip.txt 100 101 102 103 106 [root@DBBK1 changeIP]#
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1924277
标签:shell
原文地址:http://wsxxsl.blog.51cto.com/9085838/1924277