[Nolug] Bash/ed problem

From: Craig Jackson <craig.jackson_at_wild.net>
Date: 21 Apr 2003 09:12:15 -0500
Message-Id: <1050934335.8750.33.camel@rhino.wild.net>

Often when I paste data from some weird format document into vi, the
lines don't wrap when they should. So if I issue the J command to every
other line, it corrects it. Obviously I don't want to do this manually.
Is there a sed/ed script that will join every other line?

e.g.

This might be how the text is pasted into vi:

The dog jumped over the
fence.
The cat chased the mouse across the
field.
The cow stood quietly as the farmer
milked it.

There should be three lines instead of six. I've done a Google. Any
ideas?

-- 
Craig Jackson
Wildnet Group L.L.C.
103 North Park, Suite 110
Covington, Louisiana 70433
985 875 9453
___________________
Nolug mailing list
nolug@nolug.org
Received on 04/21/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST