[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Find "end of line" and replace it with a div
From: |
ludootje |
Subject: |
Find "end of line" and replace it with a div |
Date: |
Sun, 13 Apr 2008 15:14:54 -0700 (PDT) |
Hi all,
This is my first message on this forum, and I'm a complete grep newbie, so
be gentle with me :-)
I have a load of old files with printing codes. I would like to transfer
these files to the web. So I'm changing the printing codes into html and
css. When there is a beginning and an ending code, that's not too difficult.
However, I have a number of cases in which a line begins with a certain
code, say "@title", but there is no "end of title" code. These codes only
occur on separate lines, so there's always a line break.
How can I "grep-and-replace" this:
@title:The Old Man and The Sea
bla bla bla
into this
<div class="title">The Old Man and The Sea</div>
bla bla bla
(just in case this editor hides html codes: the idea is to get "beginning
div" followed by the actual title, followed by "ending div").
Hoping somebody could help me out here...
--
View this message in context:
http://www.nabble.com/Find-%22end-of-line%22-and-replace-it-with-a-div-tp16668830p16668830.html
Sent from the Gnu - Grep mailing list archive at Nabble.com.
- Find "end of line" and replace it with a div,
ludootje <=