Published by Jesse Afolabi on

awk Linux Command on Chrome OS

Awk is a powerful programming language created for text processing and generally used as a data extraction and reporting tool.

There are multiple package variations to awk in the Debian container within chromeOS.

These include:


GNU awk, a pattern scanning and processing language

Gawk is generally recognized as the de-facto implementation of awk. As a programming language, GNU has the advantage of making it an official GNU/Linux package that can enjoy wide adoption within the community.

GNU Project’s implementation of the AWK programming language conforms to the language standard of POSIX 1003.2 Command Language And Utilities. advantageously, Gawk also provides more recent Bell Labs awk extensions, and some GNU-specific extensions.

Pattern scanning and text processing language

mawk is an interpreter for the AWK Programming Language. The AWK language is useful for manipulation of data files, text retrieval and processing, and for prototyping and experimenting with algorithms.

$ awk ‘//{print}’/etc/hosts

mawk [-W option] [-F value] [-v var=value] [–] ‘program text’ [file
mawk [-W option] [-F value] [-v var=value] [-f program-file] [–] [file

The original awk described in “The AWK Programming Language”

Install awk via gawk, mawk, or original-awk (packages at the time of writing):

$ sudo apt install original-awk 2012-12-20-6
$ sudo apt install mawk 1.3.3-17+b3
$ sudo apt install gawk 1:4.2.1+dfsg-1

Just incase you can’t find the specific packages as listed below, search for the latest using:

$sudo apt search awkpackage




Jesse Afolabi

Having been a technical writer for over 4 years, and co-founded in 2016, I took my passion to the next level with the founding of which so happens to revolve around my love for open-source technologies and Chrome OS. It's my hope to venture into new avenues in the tech universe and take you with me on that ride.


Leave a Reply

Your email address will not be published. Required fields are marked *