shell去除重复行:

注:uniq只对相邻行做比较,一般结合sort先排序下(以使重复行相邻)

sort -n aa.txt | uniq > bb.txt