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

linux, how to grep for a sentence

How to grep for for a sentence in the files that are in the current directory?

For example:I want to find out which files has this pattern "Dr.Phil is on TV".
0
rgbcof
Asked:
rgbcof
1 Solution
 
woolmilkporcCommented:
grep -l "Dr.Phil is on TV" *

wmp
0
 
rgbcofAuthor Commented:
It works.  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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