Question

Which command will read input line-by-line from a file in a shell script?

A while read line; do ... done < filename
B cat filename | while read line
C Both A and B
D readline filename
E read < filename
Practice Next

Hey! Ask a query