What is the difference between the following two blocks of code in reading the content of a file?
while read i; do
echo $i
done < ${filename}
while read i < ${filename}; do
echo $i
done
You can write it that way, but it always reads the first line.
Think of the while loop like this: