#!/bin/shtouch telnetRes.logfor ip in `cat $1`do format=`echo $ip|awk -F ':' '{print $1,$2}'` { echo "quit";sleep 1; }|telnet $format >> telnetRes.log #echo $formatdone