Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000757

How do I find text within files in Linux?

Question:

How do I find text within files in Linux?

Additional information:

This document is for users looking for information about finding text within one or more files on their computer. If you're looking for information about finding a file on your computer, see document CH000623.

Answer:

One of the easiest methods of locating text contained within a file on a computer running Linux is to use the grep command. Below is a basic example of a command used to locate any htm file containing the word "help".

grep "help" *.htm

See our grep command page for additional information and help with this command.

 

 

 

Index


Category:
:Linux Q&A

Companies:
Click here 

Related Pages:

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope