GNU version of awk, a versatile programming language for working on files. See also:
awk. More information: https://www.gnu.org/software/gawk/manual/gawk.html.
gawk '{print $5}' {{path/to/file}}
gawk '/{{foo}}/ {print $2}' {{path/to/file}}
gawk {{[-F|--field-separator]}} ',' '{print $NF}' {{path/to/file}}
gawk '{s+=$1} END {print s}' {{path/to/file}}
gawk 'NR%3==1' {{path/to/file}}
gawk '{if ($1 == "foo") print "Exact match foo"; else if ($1 ~ "bar") print "Partial match bar"; else print "Baz"}' {{path/to/file}}
gawk '($10 >= {{min_value}} && $10 <= {{max_value}})'
%-20s mean: 20 left-align string characters, %6s means: 6 right-align string characters):gawk 'BEGIN {FS=":";printf "%-20s %6s %25s\n", "Name", "UID", "Shell"} $4 >= 1000 {printf "%-20s %6d %25s\n", $1, $4, $7}' /etc/passwd