分享 Ruby 版 Ack

hooopo · August 30, 2012 · Last by dmhorse replied at September 11, 2012 · 2491 hits
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 多谢,十分有用,如果早点发现就好了。

You need to Sign in before reply, if you don't have an account, please Sign up first.