How to read a file line by line with Bash

Sometimes you want to do actions per line instead of the complete file at once.

Here is an example that you can use to read the file line by line.