Read a text file with bash line by line

Read a text file in bash line by line with while. It will read till the end of line. You can modify the end of line setting a new value to EOF variable.

 bash | 
 
 copy code |
?

1
while read line; do echo "${line}"; done < <(cat file.lst)