Linux/UNIX: Bash Read a File Line By Line

Originally published at: https://www.cyberciti.biz/faq/unix-howto-read-line-by-line-from-file/

How do I read a text file line by line under a Linux or UNIX-like system using KSH or BASH shell? How do I read a file line by line in bash script?