ack 是一个类似 Linux 下的 grep 命令的工具,采用 Perl 语言编写,利用了强大的 Perl 正则表达式。

ack 2.0 发布了,对 1.x 版本用户来说,2.0 值得关注的改变有:
- 默认可搜索所有的文本文件,你可以使用 -k/--known-types 参数
- 更灵活的类型识别系统,可通过扩展名来识别文件,例如 .rb 是 Ruby 源文件
- 更好的支持 ackrc 文件
- The -x argument tells ack to read the list of files to search from stdin, much like xargs. This lets you do things like git ls | ack -x foo and ack will search every file in the git repository, and only those files that appear in the repository.
ack 的下载地址:请点这里
