while read line do SOURCEIP=`echo $line| sed 's/.*" "//g'|sed 's/"//g'` MEAT=`echo $line|cut -d" " -f2-` echo $SOURCEIP $MEAT >>${LOG}.txt done<$LOG