There are two ways of reading a file line by line that I want to discuss here: #!/bin/ bash while read ...
stackoverflow.com