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 1LfWTr-0003CB-Pe for garchives@archives.gentoo.org; Fri, 06 Mar 2009 09:36:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2B95E04CB; Fri, 6 Mar 2009 09:36:33 +0000 (UTC) Received: from dcnode-02.unlimitedmail.net (smtp.unlimitedmail.net [94.127.184.242]) by pigeon.gentoo.org (Postfix) with ESMTP id 60FACE04CB for ; Fri, 6 Mar 2009 09:36:32 +0000 (UTC) Received: from ppp.zz ([137.204.208.98]) (authenticated bits=0) by dcnode-02.unlimitedmail.net (8.14.3/8.14.3) with ESMTP id n269aJ4o013814 for ; Fri, 6 Mar 2009 10:36:19 +0100 From: Etaoin Shrdlu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Grep question Date: Fri, 6 Mar 2009 10:33:58 +0100 User-Agent: KMail/1.9.9 References: <5602B0BD6D59AE4791BE83104940118D7B1B3EB4@excprdmbxw002.optus.com.au> In-Reply-To: <5602B0BD6D59AE4791BE83104940118D7B1B3EB4@excprdmbxw002.optus.com.au> 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903061033.59237.shrdlu@unlimitedmail.org> X-UnlimitedMail-MailScanner-From: shrdlu@unlimitedmail.org X-Spam-Status: No X-Archives-Salt: a602c9ac-7006-40cc-b8e9-2f205c53f523 X-Archives-Hash: b9ed041892aa6a6b3aa0f578aafccf1d On Friday 6 March 2009, 00:01, Adam Carter wrote: > > > 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 putting the newline character as the "translated to" bit. > Installing GNU sed on the Solaris box sorted that out. Or for the future, with seds that do not like \n in the rhs, you can do sed 's/;/\ /g'