【Shell】删除文档中重复内容

来源:互联网 发布:nginx负载均衡策略 编辑:程序博客网 时间:2024/06/05 15:51

cat old.txt | sort | uniq > new.txt


先排序,在删除相邻重复内容,并存到新文档中。

0 0
原创粉丝点击