1836438 Members
2630 Online
110100 Solutions
New Discussion

Find files

 
Kenn Chen
Advisor

Find files

I would like to find all files which has content of "Hello" word inside the file.
Cyber Zen
2 REPLIES 2
Bill McNAMARA_1
Honored Contributor

Re: Find files

find . *.txt | xargs grep Hello

You can also look at fgrep.

Later,
Bill
It works for me (tm)
federico_3
Honored Contributor

Re: Find files

find DIR -type f -exec grep -l "Hello" {} \;