1. Introduction to awk: awk is a powerful text analysis tool. Compared with grep search and sed editing, awk is particularly powerful when it analyzes data and generates reports. Simply put, awk reads the file line by line, slices each line with a space as the default delimiter, and performs various analysis and processing on the cut part.
2, awk format: awk is composed of patterns, actions, or a combination of patterns and actions. The pattern pattern refers to the matching condition, and the action refers to one or more statements in curly braces, separated by commas.
3, awk execution process
4, area, field
5. Record
6. Array