How to read a file line by line in Bash
A loop is a set of instructions in computer programming that is continuously repeated until a given condition is met. Suppose the condition is met, then the loop exits. In most cases, a specific operation is carried out, such as retrieving an item of data and modifying it.
Source: FOSS Linux