This command will search the working directory recursively for any files with the word “sample” and output to the screen.

find . -type f -exec grep -l “sample” {} +

Leave a Reply

Post Navigation