I'm looking for a function name and the folder structure is deep and there are a lot of files to look though.
Usually I go with something like find * | grep functionname but is that the best way?
and in
|
|||||||||
|
|
|
|||
|
|
|
There's also |
|||
|
|
|
what's wrong with (+1 for edit: I found an excellent article detailing the possibilities and pitfalls if you don't have |
||||
|
As an alternative to the To do this you would run
Where (Is there an easy way to do something similar with the various indices that eclipse builds, or to just query the eclipse database?) |
|||
|
|
|
Note that even -print0 has this problem. It's better in my opinion to use
|
|||
|
|
If your disks are fast you may want to parallelize the grep:
Watch the intro video to learn more about GNU Parallel: http://www.youtube.com/watch?v=OpaiGYxkSuQ |
|||
|
|
findonly finds file names, not contents. – Hello71 Mar 12 '11 at 1:44xargs? Or the-execprimary infind? – geekosaur Mar 12 '11 at 1:51