[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: matrix text editing
From: |
Paul Jarc |
Subject: |
Re: matrix text editing |
Date: |
Wed, 02 Apr 2003 11:25:56 -0500 |
User-agent: |
Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3 (gnu/linux) |
Tsuyoshi Takada <address@hidden> wrote:
> -------------------
> a
> b
> delimiter
> c
> d
> delimiter
> e
> f
> -------------------
>
> to
>
> -------------------
> a b
> c d
> e f
> -------------------
You can do this with sed. Append each input line (with trailing
spaces, if you like) to the hold space, and then when you see a
delimiter line, replace it with the contents of the hold space.
paul