文件名称:rmdup.tar
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [Linux] [C/C++] [源码]
- 上传时间:
- 2014-03-05
- 文件大小:
- 37kb
- 下载次数:
- 0次
- 提 供 者:
- 孙*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
"rmdup" removes all the duplicate lines of a text file (or stdin), and output in the same order as input. Functions like sort+uniq, without changing the line order.
=====================
Motivation: When using zsh, one might wish not to record the commands which are already in history. Unfortunately, the zsh stores the command history instantly, therefore only the continuous duplicate lines would be discarded. With sort+uniq, the original order will be lost, and sometimes it crashes with encoding problem.
=====================
Algorithm: “rmdup” first (heap) sorts the lines (of a text file or from stdin) according to the text and delete/keep the duplicate lines like "uniq". Then it (heap) sorts the output according to the input order.
=====================
The source code is compressed with two precompiled binaries, the MacOS X 10.9 and Ubuntu 11 on Linux 3.0.0.14 (64 bit).
=====================
Motivation: When using zsh, one might wish not to record the commands which are already in history. Unfortunately, the zsh stores the command history instantly, therefore only the continuous duplicate lines would be discarded. With sort+uniq, the original order will be lost, and sometimes it crashes with encoding problem.
=====================
Algorithm: “rmdup” first (heap) sorts the lines (of a text file or from stdin) according to the text and delete/keep the duplicate lines like "uniq". Then it (heap) sorts the output according to the input order.
=====================
The source code is compressed with two precompiled binaries, the MacOS X 10.9 and Ubuntu 11 on Linux 3.0.0.14 (64 bit).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
93317462rmdup.tar