Possible Duplicate:
is it possible to find the file which contains a specific text in linux?
I want to find where a string occurs in a file directory by command line in Linux.
For example, I want to find where the string “isOutOfCircle()” occurs in files belonging “My Project” directory. How to do this?
grep -R 'isOutOfCircle()' "My Project"-Ris for recursion search. You may wantman grepfor more details.