output_file=googlehost.txt
cat /root/a.txt | while read address host_name
do
if [[ $address =~ '^#' ]];then
echo $address >> $output_file
elif [[ $address =~ '^$' ]];then
echo "" >> $output_file
else
echo 72.14.203.132 $host_name >> $output_file
fi
done
阅读(782) | 评论(0) | 转发(0) |