[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: <framers@xxxxxxxxx>
Subject: Re: Find and replace text in index markers
From: "Thomas Michanek" <thomas.michanek@xxxxxxxxx>
Date: Thu, 27 Apr 2000 19:30:51 +0200
Cc: <ian.saunders@xxxxxxxxxxxxxxxxx>, "Dulce Pueyos" <dpueyos@xxxxxxxxx>
References: <LYRIS-30000-18517-2000.04.27-06.56.30--chattare#telia.com@lists.frameusers.com>
Reply-To: "Thomas Michanek" <thomas.michanek@xxxxxxxxx>
Sender: owner-framers@xxxxxxxxx
*** The original message appeared on the FrameUsers list.
*** This reply is posted to the framers@omsys.com mailing list.
Original question from: "Dulce Pueyos" <dpueyos@itpsp.com>
> We have to find/replace lots of text inside hundreds of index markers.
> Is there any way of cut/paste the text inside them without opening
> them once and again, selecting the text and cutting and pasting?
Summary from: "Dulce Pueyos" <dpueyos@itpsp.com>
> To summarize these are the answers to my query about finding/replacing text
> in markers:
>
> 1. The best option for Windows/Unix is using a plug-in called IXgen. URL:
> http://www.pacifier.com/~franks and Frameusers.com - Tools area
> It seems to be a great tool. It's a pity it doesn't exist for Mac, but
> useful for us indeed (we use both) - Thanks Stuart for noting the Mac issue.
>
> 2. A more painful option is editing the MIF file. [...]
As usual, I cannot resist giving a UNIX script solution for MIF files,
that don't require the use of IXgen:
1. Save the file to MIF.
2. Execute the following UNIX command:
ex - file.mif << EOT
g/<MType 2>/\
/<MText / s/SEARCH TEXT/REPLACE TEXT/
w!
q
EOT
3. Save the MIF file back to binary.
Note that "SEARCH TEXT" is case-sensitive.
- - - - - - - - - - - - - - - - - - - - - - - - - -
Thomas Michanek, [Michagon], Linkoping, Sweden
Documentation Consultant, FrameMaker/UNIX expert
EMAIL: mailto:Thomas.Michanek@telia.com
WWW: http://go.to/framers , or go directly to:
http://w1.133.telia.com/~u13304072/framers
- - - - - - - - - - - - - - - - - - - - - - - - - -
Subscribe to Omni System's "Free Framers" list: send an email
to majordomo@omsys.com with "subscribe framers" in the body
** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body. **