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
do
# echo line is stored in $line
echo $line
done < "$file"
the part I don't understand is IFS=
and how it contributes to this functionality. Could anybody explain this to me? Thanks.