Friday, January 26, 2007

How do I find text within files in Linux?

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


SOURCE : www.referjava.com

No comments: