Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can someone explain how Ack is better than "git grep"? Assuming, of course, you use git to manage your code.

I find "git grep" as fast as Ack and very flexible.



Depends on what your needs are. Do you want the coloring and grouping? Do you want Perl regular expressions? Do you want to only search source code? Do you want to be able to specify specific filetypes, like "ack foo --perl" or "ack foo --nohtml"?

git grep is neither superset nor subset of ack. Each tool has its place.


There is a large world beyond source code. Surely you've done some system administration or looked in logs?


I'd suggest that for most cases that are not source code that you stick with grep.


I'd suggest that for most of my cases that are not source code that I'll stick with ack.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: