Tag Archive : sort

/ sort

文本处理按列排序

2016-5-29 22:18:27 | Shell | 没有评论

除了写个脚本,直接通过sort命令也挺快

lihui@MacBook  ~  cat lihui.txt
one     1
ten     10
five    5
four    4
six     6
nine    9
three   3
serven  7
two     2
eight   8

 

按第二列顺序

lihui@MacBook  ~  cat lihui.tx[......]

Read more