I want to do a simple regex search recursively through a directory that isn't restricted to single lines.
I tried grep and ack, but neither seem to support this.
I know it shouldn't be too computationally expensive (in my case) because my text editor of choice (Sublime Text) can do it just fine.
I'm just looking for a simple command-line version of this. Google has turned up pcregrep, but I can't seem to find that for Mac. Am I just not looking in the right place?
grep
with context help you find what you want (-C1
)?