shell小知識
[[email protected] 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 [email protected]$n "$1" done [[email protected] changeIP]# cat ip.txt 100 101 102 103 106 [[email protected]
本文出自 “磚家博客” 博客,請務必保留此出處http://wsxxsl.blog.51cto.com/9085838/1924277
shell小知識