HxHippy

awk

Pattern scanning and processing language

Overview

A versatile programming language for working on files, useful for pattern scanning and processing. It excels at text manipulation and report generation.

Syntax

awk [OPTIONS] 'program' FILE...

Examples

$ awk '{print $1}' file.txt

Print the first field of each line in file.txt.

awktextpatternscanprocessscriptgawknawk