How do I read a file line by line under a Linux or UNIX-like system using KSH or BASH shell?
You can use while..do..done bash loop to read file line by line on a Linux, OSX, *BSD, or Unix-like system.
Source: Linux/UNIX: Bash Read a File Line By Line (nixCraft)