Hi Rob,
   If I want to do a search replace on all the MS doc files in a
directory then the method you suggested would be cumbersome.
   This is what I read about powergrep.
http://www.powergrep.com/replace.html
------------------------------------------------------------------------
   The basic way to use the functionality of the Replace page in
PowerGREP is like the search and replace feature offered by any text
editor. Type in the text you want to have replaced in the search box.
Put the text you want to have it replaced with in the Replace box.
Specify the folder and file mask (such as *.txt), and click the Replace
button. PowerGREP will then perform the search and replace operation on
all files matching the file mask in the folder that you specified, and
in its subfolders if you want.

The difference between using PowerGREP instead of a text editor is that
with PowerGREP, you do not have to open all the files first. PowerGREP
will also present you with a list of all replacements that have been
made. Double-click on a replacement to see its context. Prevent mistakes
by clicking the Preview button instead of the Replace button. The
Preview function will build the list of replacements, but will not
actually make the replacements. And if you do make a mistake, the Undo
History will save your day by restoring all files that were modified.
------------------------------------------------------------------------
-------


   Any module for this in perl?

Cheers,
Chetak.


 


-----Original Message-----
From: Rob Dixon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 10:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Grep on a ms word document


Chetak Sasalu M wrote:
>
> Does anybody know of a tool which can do a grep -c
> "HowManyTimesDoesThisOccur" on an ms word document. There is a tool
> called powergrep but it aint free :-(

Hi Chetak.

Within Perl on Windows the obvious way is to export
the document from Word into plain text format and code
a grep for that.

Nothing that I know about is any more slick.

What does 'powergrep' do? Is it a Windows app?

Rob



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to