• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • Last Modified:

find text within files:linux command

Hi,

I'm wondering what is the linux command for me to find files (recursively) with the the text 'Dermapproved.com - comming soon' (not including the quotes).

Thank you,
Victor
0
Victor Kimura
Asked:
Victor Kimura
2 Solutions
 
PapertripCommented:
Use grep to find strings in files.

You can use -R with grep to search all files in a directory recursively.
grep -R 'Dermapproved.com - comming soon' /path/to/search

Open in new window

0
 
jgiordanoCommented:
Use grep recursively
You can search recursively i.e. read all files under each directory for a string "192.168.1.5"
$ grep -r "192.168.1.5" /etc/
0
 
Victor KimuraAuthor Commented:
thank you.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now