排序 | 去重替代品
由 Tamir Bahar 和 2位贡献者
使用旧Rust 2015
#9 in #uniq
5KB 82 行
uq 是一个简单、用户友好的 sort | uniq 的替代品。
uq
sort | uniq
它从输出中删除重复行,不考虑顺序。与 sort | uniq 不同,uq 不排序条目。这允许 uq 在连续流上操作。
$ python -c "while 1: print('a');print('b')" | uq a b
~450KB