linux命令
时间:2014-07-03 13:33:11
收藏:0
阅读:237
1、比如一个文件有两列,如下,现在要交换两列的位置:
awk ‘BEGIN{ OFS="\t"}{print $2,$1}‘ t est.txt | sort > test1.txt
评论(0)
1、比如一个文件有两列,如下,现在要交换两列的位置:
awk ‘BEGIN{ OFS="\t"}{print $2,$1}‘ t est.txt | sort > test1.txt