Technotes

Technotes for future me

awk

Matching

Match lines

awk '$1 ~ /pattern/ { ... }' infile

Matching for Conditions

awk '{if($1 ~ /pattern) { ... }}' infile

Advanced Use of awk

Negative Indizes

awk '{print $(NF - 1)}'
Last updated on 31 Jan 2021
Published on 25 Dec 2019
Edit on GitHub