Linuxtopia: Awk Learn-to

Written By
D
Dave
Nov 8, 1999

[ Thanks to Dave for this link. ]

“This document exists to educate the reader about awk….Before
using this document, the reader should be familiar with basic Linux
commands.”

“Awk is a scripting language for Unix/Linux systems. It has
a GNU counterpart, called gawk, which is fully compatible with awk.
Awk is very useful for parsing text files, and it can also be used
to simplify maintenance tasks.
It can read either from a file
or from standard input. The general idea of awk is that it takes
the input line by line, checks it for a specified test, and
performs certain operations on the lines where the test evaluates
to true. These tests can either be string- matching (with regular
expressions) or mathmatical (A<B). Awk also takes each field of
the line, and seperates it into a series of variables named $1, $2,
etc… A field is any text seperated by a space. The $0 variable
signifies the entire line.”

Complete
Story

D

Dave

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.