How to read file line by line in Bash script

How would you write a Bash script that can process a text file one line at a time.  First you need a syntax and approach to read the file line by line. The methods for this approach are shown in this tutorial. Suppose, you have a file named company.txt which contents the company names. This … Continue reading How to read file line by line in Bash script