From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LfMac-0000N8-Lj for garchives@archives.gentoo.org; Thu, 05 Mar 2009 23:02:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 332DCE04CF; Thu, 5 Mar 2009 23:02:53 +0000 (UTC) Received: from mail1.optus.com.au (mail1.optus.com.au [203.13.126.129]) by pigeon.gentoo.org (Postfix) with ESMTP id DAF22E04CF for ; Thu, 5 Mar 2009 23:02:52 +0000 (UTC) Received: from mail1.optus.com.au (unknown [127.0.0.1]) by IMSA (Postfix) with ESMTP id 67FF320F05E for ; Fri, 6 Mar 2009 10:02:50 +1100 (EST) Received: from chow2ke002.optus.com.au (unknown [161.43.32.103]) by mail1.optus.com.au (Postfix) with ESMTP id 5AAEA20F05D for ; Fri, 6 Mar 2009 10:02:50 +1100 (EST) Received: from excprdhubw002.optus.com.au ([10.10.36.116]) by chow2ke002.optus.com.au with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Mar 2009 10:02:38 +1100 Received: from excprdmbxw002.optus.com.au ([10.8.36.30]) by excprdhubw002.optus.com.au ([10.10.36.116]) with mapi; Fri, 6 Mar 2009 10:02:38 +1100 From: Adam Carter To: "gentoo-user@lists.gentoo.org" Date: Fri, 6 Mar 2009 10:01:09 +1100 Subject: RE: [gentoo-user] Re: Grep question Thread-Topic: [gentoo-user] Re: Grep question Thread-Index: Acmdsz3UK+9+mYiTSjqHKye4tCrWUAAMnfnw Message-ID: <5602B0BD6D59AE4791BE83104940118D7B1B3EB4@excprdmbxw002.optus.com.au> In-Reply-To: <877i333o6n.fsf@newsguy.com> Accept-Language: en-US, en-AU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-OriginalArrivalTime: 05 Mar 2009 23:02:39.0123 (UTC) FILETIME=[7B2B1630:01C99DE6] X-TM-AS-Product-Ver: IMSS-7.0.0.3091-5.6.0.1016-16502.002 X-TM-AS-User-Approved-Sender: No X-TM-AS-Result-Xfilter: Match text exemption rules:Yes X-Archives-Salt: c6fd50db-5d8b-43f8-82da-a2f319b29882 X-Archives-Hash: c93ab2451c72db0dee7e7d0fef83b180 > > awk '/^foo/,/^bar/' a > > > > does the same :) > > Nice... Thanks for all these answers. Interesingly when I moved the sed script (sed= "s/;/\\n/g") from Linux to Solaris it failed as Solaris sed doesn't like p= utting the newline character as the "translated to" bit. Installing GNU sed= on the Solaris box sorted that out.