I\'m having this code from http://bash.cyberciti.biz/guide/While_loop, used to read line by line from a file
file=/etc/resolv.conf while IFS= read -r line
To make IFS a genuine line separator, use IFS=$'\012'.
IFS
IFS=$'\012'