.awk AWK-Skript
Text & Quellcode
| MIME-Typ | application/x-awk |
|---|---|
| Beschreibung | AWK-Skript |
| Kategorie | Text & Quellcode |
| Signatur (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) |
| Basiert auf | application/x-executable, text/plain |
Häufige Fragen
Was ist eine .awk-Datei?
Eine .awk-Datei ist ein Format vom Typ „AWK-Skript“ (MIME-Typ application/x-awk).
Womit öffne ich eine .awk-Datei?
Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.
Woran erkennt man eine echte .awk-Datei?
Am Dateianfang, der sogenannten Signatur (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) und 23 21 20 2F 75 73 72 2F 62 69 6E 2F 61 77 6B (#! /usr/bin/awk). Unter Linux und macOS prüft file --mime-type example.awk den tatsächlichen Typ unabhängig von der Endung.
Auf welchem Format basiert .awk?
Technisch ist eine .awk-Datei ein Untertyp von „Ausführbare Datei“ (application/x-executable). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.
Welcher MIME-Typ gehört zu .awk?
Der MIME-Typ ist application/x-awk. Im Apache-Webserver: AddType application/x-awk .awk; in nginx: types { application/x-awk awk; }.