This file documents awk, a program that you can use to select particular records in a file and perform operations upon them.
Copyright © 1989, 1991, 1992, 1993, 1996–2005, 2007, 2009–2024
Free Software Foundation, Inc.
This is Edition 5.3 of GAWK: Effective AWK Programming: A User’s Guide for GNU Awk, for the 5.3.1 (or later) version of the GNU implementation of AWK.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being “GNU General Public License”, with the Front-Cover Texts being “A GNU Manual”, and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled “GNU Free Documentation License”.
awk Language awk awk and gawk awkgawk Uses gawk’s Exit Statusgawk Is Splitting Recordsgetline getline with No Argumentsgetline into a Variablegetline from a Filegetline into a Variable from a Filegetline from a Pipegetline into a Variable from a Pipegetline from a Coprocessgetline into a Variable from a Coprocessgetlinegetline Variantsprint Statementprint Statement Examplesprintprintf Statements for Fancier Printing print and printfgawk awk awk awk Functions awk Programs awk Programs awk with gawk gawk gawk for Network Programmingawk Programsgawk awk Programs gawk gawk gawk gawkgawk ERRNOgawk Finds Extensionsgawk Distribution fnmatch()fork(), wait(), and waitpid()ord() and chr()gawkextlib Projectawk Language awkawkgawk Not in POSIX awkgawk Featuresgawkgawk