help-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to combine lines into paragraphs?


From: Peng Yu
Subject: How to combine lines into paragraphs?
Date: Fri, 9 Sep 2022 09:56:27 -0500

Hi,

===
line1
line2


line3
line4
===

For example, for the above input, the output should be the following

===
line1 line2

line3 line4
===

What is the most succinct way to do so in awk?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]