3 ms·
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 you
by TorKlingberg 12y ago
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.
- theOnliest 12y agoThat's true by default, but it's trivial to add your own filetypes with a .ackrc file.
- npongratz 12y agoAddressed 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 http://beyondgrep.com/documentation/ack-2.12-man.html#faq [1] http://beyondgrep.com/documentation/ack-2.12-man.html#defining_your_own_types http://beyondgrep.com/documentation/ack-2.12-man.html#defini...
- TorKlingberg 12y agoYes, I should have added "by default".
- ritchiea 12y agoYou can also include the -a flag and search all files