Thanks jim mcnamara for the great response. I think I will start using that read statement from now on. When running the for loop with IFS="\n" I do in fact get really strange results.
#!/bin/bash
while read record
do
echo "$record"
done < file
IFS="\n"
for i in `cat file`
do
echo "$i"
done
IFS=" "
My results look really nice using read and really weird using for i in `echo file`....
now is the time for
all good men to come
to the aid of their
countrymen.
ow is the time for
all good me
to come
to the aid of their
cou
tryme