OT maybe: Looking for a tool or . . .?

Matthew Flaschen matthew.flaschen at gatech.edu
Tue Feb 20 01:10:35 UTC 2007


Patton Echols wrote:
> My question:  I'm sure that there is either a linux tool, or text editor 
> with scripting ability that can do what I want.

I'd recommend GNU Emacs for that.  Ubuntu of course has it in the
repositories.  You can install it with the command:

sudo apt-get install emacs

It could definitely handle this kind of job easy.  This is tested, but
not on your doc, so either make a backup copy or be familiar with emacs
undo (Control-/).

In Emacs:

Bold:

Alt-x replace-regex
<b>.*?</b> RETURN
RETURN

Italics:

Alt-x replace-regex
<i>\(.*?\)</i> RETURN
\1 RETURN

If you have questions, you could reply, or try the
help-gnu-emacs at gnu.org list
(http://lists.gnu.org/mailman/listinfo/help-gnu-emacs)

Matthew Flaschen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070219/800345c8/attachment.sig>


More information about the ubuntu-users mailing list