1755723 Members
3024 Online
108837 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" {} \;