Mailing List Archive

Support 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?



At Wed, 25 Jul 2001 08:28:04 +0000,
Jean-Christian Imbeault wrote:

> col and the script you provided work fined, except that it removed all blank 
> lines :) I was hoping to keep the blank lines as they separated the 
> paragraphs from each other . . .

$ cat -s text.txt | sed -f join.sed | sed -n 'p;g;p'

-- 
OZAWA -Crouton- Sakuro
E-Mail: mailto:crouton@example.com
   Web: http://www.weatherlight.org/~crouton/
   PGP: C98F 74E0 AEEB 4578 1DFC  F650 3BE0 9627 11FC C9F5
VERBA VOLANT, SCRIPTA MANENT


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links