- 帖子
- 1023
- 积分
- 3120
- 技术
- 230
- 捐助
- 160
- 注册时间
- 2010-12-22
|
3楼
发表于 2011-7-22 21:57
| 只看该作者
本帖最后由 tmplinshi 于 2011-7-22 22:07 编辑
----------------------------------------------
官网: http://lvogel.free.fr/sed.htm
下载: http://lvogel.free.fr/sed/csed-030913.zip
----------------------------------------------
Cheap-sed
Cheap-sed is based on HHsed (1991, by Howard L. Helman and David Kirschbaum), itself based on the small sed written around 1988 by Eric S. Raymond (whose last version was called sed-v1.3).
Here is how the original author described the ancestor of this sed:
This is a smaller, cheaper, faster SED utility. Minix uses it. GNU used to use it, until they built their own sed around an extended (some would say over-extended) regexp package.
I chose to maintain Cheap-sed because I was seduced by its small size, and the clarity of the source code, and impressed by its fast speed when compared especially to GNU sed. However good old sed v1.3 was rather obsolete, and a number of non-standard extensions had been added to HHsed. I decided to start from HHsed, remove all misfeatures and add all what was missing for the best POSIX compliance achievable. I named the result "cheap-sed" from Eric S Raymond's description, because "small-sed" abbreviated to ssed which is also the abbreviation of super-sed, another sed implementation.
Features
Cheap-sed inherited from its ancestors its small size and fast speed, and I strived to add the maximum POSIX compliance on top of that. There are also no more size limitations (well, almost at the current time, ultimately virtually none).
Thanks to these features Cheap-sed is a good sed implementation to run complex and demanding scripts, especially those sed scripts written more for the sake of writing them in sed than for any practical purpose :-). As an example, esoteric sed scripts such as dc.sed or unlambda.sed run between 10 and 60 times faster on cheap-sed than on recent GNU sed. |
|