AWK

awk icon

AWK programming language script

File type: Source code and script file

The awk file extension identifies a script written in AWK, a programming language for processing text. An awk file contains AWK source code in plain text.

The script is used with an AWK interpreter, rather than with a dedicated project file format.

What is awk file?

File type category:
Source code and script file

Date updated: November 3, 2026

Record marked as obsolete and not updated for a long time.

AWK was created at Bell Labs in the 1970s. It is designed to process text-based data from files or data streams, using patterns and actions to search, transform, and report on that data.

An awk file contains the program's rules, patterns, actions, and any other AWK source code. The file can be run by an AWK interpreter, either on its own or together with input files and command-line options.

The awk file extension is an older naming convention rather than a separate binary format. AWK interpreters remain available on Unix-like systems and Windows, although the extension is marked as obsolete in this record.

How to open awk file?

An awk file is a plain-text source file, so it can be viewed and edited with any text editor. To run it, use an AWK interpreter such as awk or gawk from a command-line shell.

AWK interpreters are commonly included with Unix-like systems and are also available for Windows. If the file does not run, the computer may not have an AWK interpreter installed, or the script may require input files or command-line arguments.

How to convert awk file?

AWK source code generally has no useful file-format conversion because it is already plain text. It can be saved with a different text-file extension, but that does not convert the programming language or make the script compatible with another interpreter.

To use the same processing logic in another language, the AWK script must be translated or rewritten manually. The text produced when an AWK script runs is output data, not a converted version of the original script.

Technical details

MIME types
  • text/x-awk
  • application/x-awk

Related file extensions