linux-awk

打印某一列

1
awk '{print $1}' file
1
2
3
4
awk  -F ","   '{print $1,$2}'   file
|参数 | |操作|

awk -F "," '/^a/ {print $3}' file