How to use grep & find command to find references to a particular file

Hi all ,

I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command .

 
find <yourdirname> -type f | xargs grep -l "xxx.config"
1 Like

Thank you :slight_smile: