How can I search my directory tree for contents within a file for a git managed project?

Viewed 16692

I like the unix find command but I always find it too 'fiddly' to use when I want to search through my project looking for a piece of text in any file in any directory or subdirectory.
Is there an easier way to do this?

5 Answers

Grep is simplest approach.

grep -r 'text to find' .
Related