十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
[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]#