Awk Tips
Collection of Awk tips and tricks
-
Floating point math
TLDR
awk "BEGIN {print 10 * 4.2}"
-
Hello World in pure Awk
TLDR use shebang with
-f
to make file an Awk script, eg.#!/usr/bin/awk -f
TLDR awk "BEGIN {print 10 * 4.2}"
TLDR use shebang with-f
to make file an Awk script, eg.#!/usr/bin/awk -f