LINUX AWK Tutorial Series | Chapter 7 Hello and welcome to AWK tutorial series, Hope till now you would have found the series interesting. In this chapter, I am going to discuss loops in awk. Looping Looping helps to do a particular set of actions repeatedly until a certain condition is met. Types of Loop in AWK while do .. while for Syntax While Loop: until the condition is true the body of the while will be executed. while (condition) { body } Do While Loop: Do until the condition is not met. So this means the code body will always be executed once every time. do { body } while (condition) For Loop: Condition and variable initialization is done at the time of the start of the loop. for (init;condition;increment) { body } Remember that the loop will be executed on all records one by one. Some important looping constructs are break continue exit Example 1: From the employee data file, I want to print only 2 fields for each line twice every time. I can use while loop in...