利用 sort 和 uniq 做运算

2018-06-04  本文已影响39人  Ten_Minutes

https://liam0205.me/2016/05/05/best-match-using-sort-and-uniq-to-do-set-operations/

http://blog.51yip.com/shell/1022.html

需要注意的是uniq只能对相邻的两行去重,不相邻的不起作用,因此在使用uniq之前,先用sort排序一下

上一篇 下一篇

猜你喜欢

热点阅读