O
AI-generated image

awk

/ɔːk/ noun · British & US
Valid in UK
Share WhatsApp

What does awk mean?

Awk is a small but powerful programming language built into Unix and Linux systems, used chiefly for scanning text files line by line, matching patterns, and performing actions on what it finds. It excels at tasks such as extracting columns of data, reformatting output, counting occurrences, and generating simple reports — often accomplishing in a single line what would take many lines in another language. Created in the late 1970s at Bell Labs by Alfred Aho, Peter Weinberger, and Brian Kernighan, its name comes directly from their shared initials. Awk remains widely used today by system administrators, developers, and anyone working with plain-text data, and it is prized for being available virtually everywhere with no installation required. Though largely superseded by more general-purpose scripting languages for complex programs, it retains a devoted following for quick, elegant text processing at the command line.

noun

Awk is a pattern-scanning and text-processing programming language and command-line utility on Unix and Unix-like systems, designed for extracting and transforming text from files or data streams.

Senses
  1. A pattern-directed text-processing programming language and Unix command-line utility.
Example

"She wrote a one-line awk command to pull every email address out of the server log."

More examples

"He used awk to sum the numbers in the second column of a CSV file."

"The sysadmin's shell scripts relied heavily on awk for parsing configuration files."

Did you know?

The name 'awk' isn't an acronym at all — it's simply the initials of its three creators: Alfred Aho, Peter Weinberger, and Brian Kernighan.

Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.

Etymology of awk

Awk was developed in 1977 at Bell Laboratories by Alfred Aho, Peter Weinberger, and Brian Kernighan; its name is formed from the initials of their surnames. It was created as a pattern-matching and text-processing tool to complement existing Unix utilities like sed and grep. The language was standardized in POSIX and has several implementations, including the widely distributed GNU version, gawk.

How awk is actually used

Almost exclusively used in computing contexts; written in lowercase as a command name or capitalized (AWK) when referring to the language itself.

Easily confused with awk

gawk

Gawk is the GNU implementation of awk, adding extensions beyond the standard POSIX language.

What's another word for awk?

Words and phrases paired with awk

awk scriptawk commandawk one-linerrun awk on a file

Rhymes with awk