分享 Ruby 版 Ack

hooopo · 2012年08月30日 · 最后由 dmhorse 回复于 2012年09月11日 · 2490 次阅读
Rak is a grep replacement in pure Ruby. It accepts Ruby syntax regular expressions and automatically recurses directories, skipping .svn/, .cvs/, pkg/ and more things you don't care about. It is based on the Perl tool ack by Andy Lester.

Installing

gem install rak

http://danlucraft.com/blog/2007/11/rak-a-grep-replacement-in-pure-ruby/

这个还在维护吗?

rak 遇到项目比较大的时候速度太慢了,以前用了好几年,直到后来遇到了 ack 后,就果断放弃了。

@lgn21st 一般都是 grep->ack-rak 吧。。。

@hooopo rak 有 vim 插件么?

哦。。。你不用 vim。。。。。

#6 楼 @jinleileiking No,我用 vim 不用插件。

#5 楼 @lgn21st 多谢,十分有用,如果早点发现就好了。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号