Every day when I'm programming, I invariably come to a point where I'm looking for a certain line of code in my project. I could just use my editor's "find in files" feature and look for it, but sometimes I need more fine grained control. What if I want to find all the lines of code that don't contain a certain phrase? What if I want to search on a Regular Expression? What if I want to easily save the search results to a file?
When I need MOAR POWER in finding something, I turn my favorite command line search tool:
ack. In this blog post, we'll explore the ins and outs of this fantastic application.