Link to home
Start Free TrialLog in
Avatar of elimesika
elimesikaFlag for Israel

asked on

MS Word

Hi
I have a set of documents that I want to search of occurrence of some keywords given as a flat file  
I would like to get as an output all the pages in which keywords are matched

For example , consider I have file1 file2 amd file3 as input and my flat file is looking like
love
money
influence
blabla

then my output might be

love : file1 page 84,file3 page 59
money: file2 page 11,24
influence: file3 page 55
blabla: not found

What is the best way to accomplish that ?
Thanks
Avatar of Tony Barkdull
Tony Barkdull
Flag of United States of America image

you can search for words within files from the Windows Explorer, Start Menu, Search, Files or Folders, "A word or phrase within a file". Just specify the *.doc with the path is your search
 
You can also search from Word, from an open word document, File menu, Open.  over on the right of the Open Window, select Tools and then search.  From here you can select which folders and what files.
 
You didn't mention which version of Word or Windows but the concept will be the same.

Look here

http://answers.yahoo.com/question/index?qid=20070618080843AARTVPI
Avatar of elimesika

ASKER

Thanks

I am looking for a programmatic solution since I have many files and the list of keywords is relatively big as well
I could come up witha PERL script if that works for you.
ASKER CERTIFIED SOLUTION
Avatar of pgorod
pgorod
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial