regex replacement wizard advice needed
Gary Kline
kline at tao.thought.org
Mon Sep 27 12:29:05 PDT 2004
Hi Gang,
I have a document with numbered paragraphs, the numbers
to the far left of each paragraph. Is there a perl
s/NNN/<B>NNN/</B><BR>/g means I can use from the CL or
as a script to make this doc more easy (for me) to read.
The document is formatted like this:
1 Paragraph1.
2 Paragraph2.
...
29 Paragraph29.
...
747 Paragraph747.
I would like it to be like this:
<B>1</B><BR>
Paragraph1.
<B>2</B><BR>
Paragraph2.
...
<B>29</B><BR>
Paragraph29.
...
<B>747</B><BR>
Paragraph747.
I've used perls subsitiution as a simple command line
script dozens of times, but this one (yes, I'm using
HTML) is a bit over my head. Can anybody clue me in?
thanks in advance,
gary
--
Gary Kline kline at thought.org www.thought.org Public service Unix
More information about the freebsd-questions
mailing list