5 ms·
Ack is a joy. It's almost completely displaced my use of grep for code related purposes now.
by rarrrrrr 17y ago
Ack is a joy. It's almost completely displaced my use of grep for code related purposes now.
- vdm 17y agoIndeed. It turns out that Defaults Matter. Who knew?
- snprbob86 17y agoI've been using Ack tons, love it. However, I don't like the --notext default. I find that I specify --text almost every time. Just wanted to give everyone a headsup that this is the case: I introduced some bugs in my app when I missed a whole bunch of .txt templates for plain text email variants.
- CUViper 17y agoAh, but ack supports an options file, so you can actually change your own defaults. Consider adding "--text" to "$HOME/.ackrc". In case you want more, specify just one option per line.
- snprbob86 17y agoThanks for the tip. I assumed that this existed, but hadn't gotten around to looking for it yet. My point, however, was to confirm that defaults do, in fact, matter :-)
- betterthangrep 17y ago"Defaults Matter" really is a key part of ack, and I thank you for crystallizing it for me. I would love to quote this on the betterthangrep.com page. Would you please drop me a line at andy@petdance.com and give me your name and an OK?
- compay 17y agoI've heard that people love it but haven't made the leap yet. What does it do that makes it significantly better than grep?
- DannoHung 17y agoPerl regexes, highlighted search terms, also serves as a find replacement, ignores VCS files by default. It was built with programmers in mind.
- seiji 17y agoFor large code bases, it's worth setting up OpenGrok: http://www.opensolaris.org/os/project/opengrok/ http://www.opensolaris.org/os/project/opengrok/