.awk AWK script

Text & source code

MIME typeapplication/x-awk
DescriptionAWK script
CategoryText & source code
Signature (magic bytes)23 21 20 2F 62 69 6E 2F 61 77 6B (#! /bin/awk)
23 21 20 2F 62 69 6E 2F 67 61 77 6B (#! /bin/gawk)
23 21 20 2F 75 73 72 2F 62 69 6E 2F 61 77 6B (#! /usr/bin/awk)
Based onapplication/x-executable, text/plain

Frequently asked questions

What is a .awk file?

A .awk file is a “AWK script” (MIME type application/x-awk).

How do I open a .awk file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .awk file?

By the bytes at the start of the file, the signature (magic bytes): 23 21 20 2F 62 69 6E 2F 61 77 6B (#! /bin/awk), 23 21 20 2F 62 69 6E 2F 67 61 77 6B (#! /bin/gawk) and 23 21 20 2F 75 73 72 2F 62 69 6E 2F 61 77 6B (#! /usr/bin/awk). On Linux and macOS, file --mime-type example.awk checks the real type regardless of the extension.

Which format is .awk based on?

Technically a .awk file is a subtype of “Executable” (application/x-executable), so programs for that base format can often read it too.

Which MIME type belongs to .awk?

The MIME type is application/x-awk. In the Apache web server: AddType application/x-awk .awk; in nginx: types { application/x-awk awk; }.

Nearby entries