Modest
stanford duck
HOME
POST
CATEGORY
TAG
ABOUT
PLAY GROUND
AWK Usage
awk
linux
posted on 24 Feb 2018 under category
人生经验
分隔符
awk -F “,” ‘{print $1}’ file
awk ‘BEGIN {FS=”,”} {print $1}’ file
awk -F “\t” ‘{OFS=”,”} {print $1,$2}’ file 以,分隔输出
awk -F “\t” ‘{print $1,$NF}’ file $NF代表最后一列
Please enable JavaScript to view the
comments powered by Disqus.