News for hackers. Stuff that matters.
Re:Ack is a grep-like tool, optimised for programmers by TorKlingberg on Wednesday May 07, 2014 @10:17AM (#7710235)
Ack is great, but watch out if you have any source files with unusual file name extensions. Ack will only search file types it knows about. Also if you have your whole source tree in your editor or IDE, then you may as well search there instead.
Re:Ack is a grep-like tool, optimised for programmers by npongratz on Wednesday May 07, 2014 @10:30AM (#7710305)
Addressed in ack's FAQ [0], and in its own section of the manual [1].

The manual explains: "This is done with command line options that are best put into an .ackrc file - then you do not have to define your types over and over again." Then comprehensively describes options for both command line and .ackrc.

[0] http://beyondgrep.com/documentation/ack-2.12-man.html#faq

[1] http://beyondgrep.com/documentation/ack-2.12-man.html#defini...

Re:Ack is a grep-like tool, optimised for programmers by TorKlingberg on Wednesday May 07, 2014 @12:48PM (#7711212)
Yes, I should have added "by default".
Re:Ack is a grep-like tool, optimised for programmers by theOnliest on Wednesday May 07, 2014 @10:27AM (#7710283)
That's true by default, but it's trivial to add your own filetypes with a .ackrc file.
Re:Ack is a grep-like tool, optimised for programmers by ritchiea on Wednesday May 07, 2014 @10:59AM (#7710511)
You can also include the -a flag and search all files
Re:Ack is a grep-like tool, optimised for programmers by hoelzro on Wednesday May 07, 2014 @11:01AM (#7710526)
That flag has been removed as of Ack 2.0.
Re:Ack is a grep-like tool, optimised for programmers by yohanatan on Wednesday May 07, 2014 @02:57PM (#7712021)
Might want to mention that it is also the default (hence the removal).