How to find a particular word in a file or files in a directory


login to that directory where the word from the files to be searched and type the bellow command ,

example:

 grep -r -w “prioritycalendars.com.” *

Word name = prioritycalendars.com.

*=whole sub directory and files under the main directory

Cheers

siva.d

Advertisements
Published in: on March 10, 2010 at 10:35 pm  Comments Off on How to find a particular word in a file or files in a directory  
%d bloggers like this: