I hope that you have a better and clearer understanding of what you can use the AWK tool for. This is a data-processing tool that runs through text files, line by line, and processes the code you add. The main block runs for each line that matches the row criteria, whereas the BEGIN and END block code is executed just once.
You've learned how to use AWK built-in variables and how to define your own variables and use them.
Also, you have learned how to use the if, while , and for loop to iterate over data fields.
In the next chapter, we will discuss regular expressions and how to use them in sed and AWK to gain a lot of power.