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

Search linux files

I need to search all files in the directory (and subdirectories) /home/me/ for the text "Bad Header".  What Linux command can accomplish this?
0
lwinkenb
Asked:
lwinkenb
1 Solution
 
smidgie82Commented:
Hi lwinkenb,

You want GREP!

an example:

cd /home/me
grep "Bad Header" * -r

The output will be a list consisting of the filename in which the match occurred, and the line on which the match occurred.  Look at man grep for more options.


Cheers!
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

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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