IT lexicon › Programming › AWK

AWK

Programming På svenska → Updated: 2026-07-28
More info
Creator
Alfred Aho, Peter Weinberger, Brian Kernighan
Released
Type
Programming language

A pattern-driven text-processing language from 1977, named after Aho, Weinberger and Kernighan.

The program model is pattern { action }: for every line matching the pattern, the action runs. Lines are split into fields automatically, reachable as $1, $2 and so on. awk '{print $3}' pulls the third column out of anything.

More capable than people assume — it is a complete language with associative arrays, functions and regular expressions — but mostly used for one-off jobs in pipelines. Perl was written partly to replace it. Present on every Unix-like system, which is its strongest card.

← Back to the lexicon