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?



Thanks. :)

I've opened the output file in vi but it causes vi to behave strangely, i.e. 
I can't cursor down a line or even do a ctrl-f to go down a page. I also 
have a bunch of ^M all over the place.

I guess this is caused by the fact that it's an MS-DOS file? the CR/LF is 
causing a problem? But when I open the original file in vi I don't see any 
^M though  . . .

Jc



>From: OZAWA -Crouton- Sakuro <crouton@example.com>
>Reply-To: tlug@example.com
>To: tlug@example.com
>Subject: RE: sed/vi how to concatenate all non-empty lines?
>Date: Wed, 25 Jul 2001 14:53:50 +0900
>
>At Wed, 25 Jul 2001 05:41:33 +0000,
>Jean-Christian Imbeault wrote:
>
> > [root@example.com tools]# cat -s input.txt | sed join.sed
> > sed: -e expression #1, char 1: Unknown command: ``j''
> > Broken pipe
>
>Oops! Try sed -f join.sed X-|
>               ^^
>--
>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
>
>-----------------------------------------------------------------------
>Next Nomikai Meeting:    Fri, Aug 10 19:30-  Tengu Tokyo Eki-Mae
>Next Technical Meeting:  Sat, Sep 15 13:30-  Akasaka Kumin Center
>-----------------------------------------------------------------------
>more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links