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.

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


Posted

in

by

Tags: