Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 08:40:34 
From:      "Aaron Hill" <hillaa@hotmail.com>
To:        questions@freebsd.org
Subject:   Slightly OT: Help with SED
Message-ID:  <F1268NjUy6W8uCamWJ10000519e@hotmail.com>

next in thread | raw e-mail | index | archive | help
I tell you, I'm really hurting with Deja being messed around with lately!

Can someone help me with a sed question please? I'm sure what I'm doing has 
a really easy answer but I can't find it yet. Basically what I'm trying to 
do is replace two lines with one line but I don't know how to get sed to 
detect the newline (\n) character.

For example...

sed s/two\nlines/one line/g testfile

That command doesn't work - how do I get it to work?


Thanks

Aaron Hill




_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F1268NjUy6W8uCamWJ10000519e>