I am hoping 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 is run for each line that matches the row criteria, if it has been added. Whereas, the
END block code is executed just once.
In the next two chapters, we will continue working with awk and some practical examples of how awk is used in real life.