I find myself often running a grep command with the -n
which means that when it shows the filename it also shows the line number it matched it on. Then what I often do is that I open the found file with my editor and move to that line with the gotoline feature. Here's a cute little bin
Python script that expands the result a little bit. Try:
$ grep -rin 'def set' *
frintranet/sequence/tests/testSequence.py:26: def setUp( self ):
slimmer/tests/testSlimmer.py:37: def setUp(self):
slimmer/tests/testSlimmer.py~:37: def setUp(self):
slimmer/tests/testSlimmer.py.bak:42: def setUp(self):