批量telnet端口通不通

每读一行就运行一次telnet IP port

#!/bin/bash
port="22"
cat *.txt | while read line
do
    telnet ${line} ${port}
    echo "--------------------"
done

执行后

posted @ 2019-01-10 17:07  扶苏公子x  阅读(1289)  评论(0编辑  收藏  举报