RE: Text formating

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

 



Am Mo, den 26.04.2004 schrieb Bill Gradwohl um 18:00:

> >Mary had a little lamb, it's fleece was white as snow.
> >A quick brown fox jumps over the lazy dog.
> 
> That's almost what I want. I still want the 'A quick ...' line to continue
> after '... snow.' on the same line as in :
>  ... white as snow. A quick brown ...

Ah, ok, I thought you did want a line break when a combination of a dot
and line wrapping appears. So

$ cat testfile | tr -d '\n' | sed -e 's/\\n/ /g'
--> result:
Mary had a little lamb, it's fleece was white as snow. A quick brown fox
jumps over the lazy dog.

would fit your need.

> Your approach led me to the solution:
>    sed -e :a -e 'N;s/\n\([^\x0a]\)/ \1/;ta' infile >outfile

That line does not produce any output on my FC1.

> Thank You

> Bill Gradwohl

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2179.nptl
Sirendipity 19:04:48 up 8 days, 1:50, load average: 0.00, 0.01, 0.03 
                   [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]
             my life is a planetarium - and you are the stars

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux