[awk] Select a column using an input delimiter

Created on November 30, 2026

Use -F to set the input field separator. Start with the following users.csv file.

name,age,city
Alice,30,Tokyo
Bob,28,Osaka

-F',' separates fields at commas. NR > 1 skips the header and $1 selects the first field.

awk -F',' 'NR > 1 {print $1}' users.csv
Alice
Bob
awk Shell command