Little knowledge of shell
[root@DBBK1 changeIP] # cat view.sh #! / bin/shif [$#-ne 1]; then echo "USAGE:/bin/sh $0 ARG1" exit 1fifor n in `cat ip.txt`do echo = 172.22.10.roomn = ssh root@172.22.10.$n "$1" [root @ DBBK1 changeIP] # cat ip.txt 100101102103106 [root@DBBK1 changeIP] #