The keyword for is used in a shell script to begin a loop that iterates over a list of items or a range of
numbers. The syntax of the for loop is as follows:
for in do done
The variable is assigned to each element of the in turn, and the are
executed for each iteration. The can be a sequence of words, numbers, filenames, or other
values. If the is omitted, the for loop will iterate over the positional parameters ($1, $2, …). The
do and done keywords mark the beginning and the end of the loop body, respectively. The for loop is
one of the three types of loops in shell scripting, along with the while and until loops. Reference: 1:
Looping Statements | Shell Script - GeeksforGeeks 1 2: unix - Shell script "for" loop syntax - Stack
Overflow 2 3: For Loop Shell Scripting - javatpoint 3