Documentation

GoAWK – POSIX-compliant awk interpreter

GoAWK is a POSIX-compatible version of AWK, and additionally has a CSV mode for reading and writing CSV and TSV files.

The project has a good suite of tests, which include the developer’s own interpreter tests, the original AWK test suite, and the relevant tests from the Gawk test suite.

This is free and open source software.

Key Features

  • Proper support for CSV and TSV files (read the documentation).
  • Code coverage feature.
  • Supports negative field indexes to access fields from the right, for example, $-1 refers to the last field.
  • Embeddable in your Go programs! You can even call custom Go functions from your AWK scripts.
  • Most AWK scripts are faster than awk and on a par with gawk.
  • The parser supports ‘single-quoted strings’ in addition to “double-quoted strings”, primarily to make Windows one-liners easier when using the cmd.exe shell (which uses ” as the quote character).

Website: benhoyt.com/writings/goawk
Support: GitHub Code Repository
Developer: Ben Hoyt
License: MIT License

Help for GoAWK

GoAWK is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Alternatives to awk
gawkImplementation of the awk programming language
GoAWKPOSIX-compliant awk interpreter written in Go
MillerSmall and powerful CLI tool to do all your data processing
frawkSmall programming language for writing short programs processing textual data
chooseHuman-friendly and fast alternative to cut and (sometimes) awk
gemaGeneral purpose text processing utility based on the concept of pattern matching
mawkInterpreter for the awk programming language
ruplacerFind and replace text in source files
rawkPOSIX compatible AWK written in Rust
wakawk implementation for toybox and standalone
PAWKPython line processor
HawkHaskell text processor for the command-line

Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments