From owner-freebsd-questions Thu Feb 15 0:40:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f126.law6.hotmail.com [216.32.241.126]) by hub.freebsd.org (Postfix) with ESMTP id 2516437B401 for ; Thu, 15 Feb 2001 00:40:35 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 15 Feb 2001 00:40:34 -0800 Received: from 165.228.130.11 by lw6fd.law6.hotmail.msn.com with HTTP; Thu, 15 Feb 2001 08:40:34 GMT X-Originating-IP: [165.228.130.11] From: "Aaron Hill" To: questions@freebsd.org Subject: Slightly OT: Help with SED Date: Thu, 15 Feb 2001 08:40:34 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 15 Feb 2001 08:40:34.0978 (UTC) FILETIME=[F6B3E820:01C0972A] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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