每读一行就运行一次telnet IP port
#!/bin/bash port="22" cat *.txt | while read line do telnet ${line} ${port} echo "--------------------" done
执行后
每读一行就运行一次telnet IP port
#!/bin/bash port="22" cat *.txt | while read line do telnet ${line} ${port} echo "--------------------" done
执行后
转载于:https://www.cnblogs.com/chenglee/p/10251127.html