Here is command to get files which contains the given pattern. For example, if you are trying to find "Got my text" in current directory and its sub directories, then following command will give line numbers along with file names that contains that text:
grep "Got my text" -nr ./*