Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to remove two recurring consecutive lines from a file

2 views
Skip to first unread message

lgu...@gmail.com

unread,
Feb 17, 2006, 10:47:35 AM2/17/06
to
I like to remove two recurring consecutive lines from a file, the two
lines will be removed only when they are next to each other in order.
Here is the sample file

CREATE TABLE ......
......
/
COMMIT
/
CREATE TABLE .......
......
/
COMMIT
/
CREATE TABLE ....
....
/
COMMIT
/

I like to get rid of "COMMIT" and the following "/" together and leave
the "/" above COMMIT intact. What would be the simplest way to
accomplish this?

Thank you very much in advance.

Limin

0 new messages