Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: sed/vi how to concatenate all non-empty lines?
- To: "TLUG mailing list" <tlug@example.com>
- Subject: Re: sed/vi how to concatenate all non-empty lines?
- From: "SN_Diamond" <Norman.Diamond@example.com>
- Date: Wed, 25 Jul 2001 12:49:46 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain;charset="iso-2022-jp"
- Delivered-To: tlug@example.com
- List-Help: <mailto:tlug-request@example.comsubject=help>
- List-Post: <mailto:tlug@example.com>
- List-Subscribe: <mailto:tlug-request@example.comsubject=subscribe>
- List-Unsubscribe: <mailto:tlug-request@example.comsubject=unsubscribe>
- Old-Return-Path: <Norman.Diamond@example.com>
- References: <F7ll1YSe8y1wdi3qZLO00005a27@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <Cb8DGB.A.XcF.LHkX7@example.com>
- Resent-Sender: tlug-request@example.com
> So how to I get sed or vi to concatenate all lines within a paragraph into > one linebut keep the empty lines between paragraphes? (i.e. concatenate > all consecutive non-empty lines together)? No promises, but I think this should do it for vi: :g/^$/.+1;/^$/-1jo Of course, I didn't expect this to put a certain particular vi-clone into an infinite loop either. I'm not sure if a small test just needs gobs of CPU time or if it really is in an infinite loop. Sigh. -- Norman Diamond
- References:
- sed/vi how to concatenate all non-empty lines?
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
Home | Main Index | Thread Index
- Prev by Date: sed/vi how to concatenate all non-empty lines?
- Next by Date: RE: sed/vi how to concatenate all non-empty lines?
- Prev by thread: sed/vi how to concatenate all non-empty lines?
- Next by thread: RE: sed/vi how to concatenate all non-empty lines?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links