0
I'm working in a large codebase and want to see where particular strings like "foo" and "bar" are used, within n lines of each other, in any file in that codebase.
Ideally I'd use a built-in Unix command, but a Python script would be ok too. (Perl or Ruby would not be great).
Can you maybe give an example? – slhck – 2011-07-13T20:23:59.510
Python Script, FTW! – James T Snell – 2011-07-13T20:36:49.087