If you use grep like
grep -rnw '/your/path/to/search/' -e 'n getFoo'
grep wouldn't find a file that contains "function getFoo()".
If you only search for 'getFoo' or else 'function getFoo', grep will find the file that contains the function.
So what's the best way to find a file containing part(s) of a string?
Thanks in advance!