Text formating

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Mon Apr 26 14:56:25 UTC 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040426/4de8f006/attachment-0001.sig>


More information about the fedora-list mailing list