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 16:48:

> I'm looking for a utility that will change:
> 
> 	Mary had a\n
> 	little\n
> 	lamb, it's fleece was white\n
> 	as snow.\n
> 
> To:
> 
> 	Mary has a little lamb, it's fleece was white as snow.

Given the test above with \n in it is a textfile, then run

sed -e 's/\\n//g' < textfile > textfile.new

> 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 16:54:30 up 7 days, 23:40, load average: 0.03, 0.19, 0.38 
                   [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - 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