linux命令

1、比方一个文件有两列,例如以下,如今要交换两列的位置:

awk  'BEGIN{ OFS=" "}{print $2,$1}'  t est.txt | sort  > test1.txt



原文地址:https://www.cnblogs.com/mengfanrong/p/5183832.html