Quick overview of actions. An awk program is mostly composed of rules, each consisting of a pattern followed by an action . Either the pattern may be missing, or the action may be missing, but, of course, not both. If the pattern is missing, the action is executed for every single line of input. Blank lines may be used to separate statements.
Lines ending in do or else also have their statements automatically continued on the following line.
Go to the previous , next section.