The shape of a program

An awk program looks like this:
pattern {actions}
pattern {actions}
pattern {actions}
  ...
Each line is a separate instruction. awk looks through the data files record by record and executes the instructions, in the given order, on each record.