Awk
Awk print column
Questions in this topic
How do you use the field separator in awk?
What is awk FNR?
What is FNR in awk?