m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/awk.md
blob: 12c777212714ddfe1570a6611f9b287a6543a6ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Awk

## Basics

    awk program file

Program is ;-separated pattern-action statements.

    /pattern/ { action }

`$0` is whole line, `$1`, `$2`, ... are fields separated by `FS` (by default,
whitespace).