I'm learning bash and I found a tutorial on internet that says these are the same:
while read -r line;
do
...
done < file
$ cat file | while IFS= read -r line;
do
...
done
Are there any subtle differences in these two loops are are they really the same?