比ack更快的ag
另外 ag也不非常错 the_silver_searcher
Ack and Ag found the same results, but Ag was 34x faster
安装ag
brew install the_silver_searcher
ag的jgrep
function jgrep()
{
ag --java "$@"
}
function resgrep()
{
ag --xml "$@"
}
ag的速度
7G的目录, 秒搜
6553 matches
1284 files contained matches
11791 files searched
140173365 bytes searched
1.018488 seconds
去试试吧!