shell to duplicate on column 基于某列的 重复

 sort -k1.5,1.22 -u 1.txt  > 2.txt

取出 第五列到第22列重复的

start from 5 until 22

uniq -s 5 -w 22 1.txt

原文地址:https://www.cnblogs.com/kakaisgood/p/14217351.html