This map shows how the command awk works. It takes records from either file or pipe. If the record match the patterns you specify, it does something such as printing, calculation.