awk

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:

gawk

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.

mawk
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 USE CASES*
mawk [-W option] [-F value] [-v var=value] [–] ‘program text’ [file
…]
mawk [-W option] [-F value] [-v var=value] [-f program-file] [–] [file
…]

original-awk
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

 

 

Categories:

Jesse Afolabi

I founded ItsChromeOS in 2018 to spread the word on the future of Chrome OS with a passionate team of enthusiasts. Care about Chrome OS Flex? We cover that too! ItsChromeOS isn't your average blogging space, it's a Chrome-first space for the everyone using Chrome OS. Support our vision here: donate.itschromeos.com

0 Comments

Leave a Reply

Your email address will not be published.

BrandsView All
Show More Brands
ManufacturersView All
Show More Brands