文本查找工具-ack
ack 是一个类似于 grep 命令的工具,采用 Perl 语言编写,利用了强大的 Perl 正则表达式。
Ack is designed as a replacement for 99% of the uses of grep.
Ack searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN. By default, ack prints the matching lines.
最新版本: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.
官方主页:http://beyondgrep.com/