本文共 93 字,大约阅读时间需要 1 分钟。
cat testset | awk -F '\t' '{print $1}' > rst1
awk默认是[ \t\n]+对行切分,所以必须指定只用 '\t'
awk的字段下标从1开始计数
转载地址:http://lpeti.baihongyu.com/