How to search for a word in multiple files

Hi,
I want to find for a particular word which is existing in different files and folders under the parent directory. What command can I use to retrieve all the file names which is having the word.

 
find . -type f | xargs grep -l "search-pattern"
1 Like