Awesome find,
I changed the code to this and I no longer have a dirt cake...Thanks for all the help
IP=$(awk 'FNR==5 {printf $2}' /tmp/ipdata.txt)
IP=${IP//$'\r'/}
echo $IP $HOST >> /tmp/iphost.txt
I am kind of puzzled as to why this was not happening when I wrote the host before the ip...
but I have other things to drink about this weekend without having that floating around in the back of my mind
Thanks for all the help
Bookmarks