From owner-freebsd-questions Thu Feb 15 5:29:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bcfw1d.bridge.com (bcfw1d.ext.bridge.com [167.76.159.31]) by hub.freebsd.org (Postfix) with ESMTP id CC9C637B401 for ; Thu, 15 Feb 2001 05:29:08 -0800 (PST) Received: (from uucp@localhost) by bcfw1d.bridge.com (8.10.2/8.10.2) id f1FDU9U08986; Thu, 15 Feb 2001 07:30:09 -0600 (CST) Received: from unknown(167.76.56.34) by bcfw1d.bridge.com via smap (V5.5) id xma008936; Thu, 15 Feb 01 07:30:00 -0600 Received: from mnmailhost (mnmailhost.bridge.com [167.76.155.14]) by mail1srv.bridge.com (8.8.8/8.7.3) with SMTP id HAA02992; Thu, 15 Feb 2001 07:28:57 -0600 (CST) Received: from HPPAV by mnmailhost (SMI-8.6/SMI-4.1) id IAA28044; Thu, 15 Feb 2001 08:28:53 -0500 To: questions@FreeBSD.ORG Subject: Re: Slightly OT: Help with SED References: From: Tim Ayers Date: 15 Feb 2001 07:28:49 -0600 In-Reply-To: "Aaron Hill"'s message of "Thu, 15 Feb 2001 08:40:34" Message-ID: Lines: 14 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "A" == Aaron Hill writes: A> Can someone help me with a sed question please? I'm sure what I'm A> doing has a really easy answer but I can't find it yet. Basically A> what I'm trying to do is replace two lines with one line but I A> don't know how to get sed to detect the newline (\n) character. See a sed FAQ near you. Section 5.10. "Why can't I match or delete a newline using the \n escape sequence? Why can't I match 2 or more lines using \n?" It took me and google.com two minutes to find that answer. HTH and Hope you have a very nice day, :-) TIm Ayers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message