Skip header line awk
Process all lines except the first (header)
awk 'NR>1 {print $1, $2}' data.csv
more awk
all 15 commands →
Count occurrences per key
awk '{count[$1]++} END {for (k in count) print count[k], k}' access.log | sort -rn
Print last field
awk '{print $NF}' file.txt
Multi-condition filter
awk '$2 > 500 && $5 == "POST"' access.log
Reformat output
awk '{printf "%-20s %5d\n", $1, $2}' data.txt
Run awk script from file
awk -f transform.awk input.txt