Linux Bash For Loop Examples

A ‘for loop’ is a bash programming language statement which allows code to be repeatedly executed.

A for loop is classified as an iteration statement i.e. it is the repetition of a process within a bash script. How do I use bash for loop to repeat certain task under a Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression?