sed question

From: Warren, John H. <JHWARREN_at_ESCOCORP.com>
Date: Thu, 20 Aug 1998 20:24:42 -0700

I have created a text file that contains two lines- one with a timestamp,
the other with one ping command output. I want to join both lines (remove
the linefeed after the first line), but am having no luck. I open the file
in vi, and attempt to use the following:
        :1,$s/1998\n/1998/ <<1998 is the last token in the line>>
Any help is appreciated

John H. Warren
Received on Fri Aug 21 1998 - 03:25:47 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT