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 1MJTJe-00041v-4K for garchives@archives.gentoo.org; Wed, 24 Jun 2009 14:19:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64474E0501; Wed, 24 Jun 2009 14:19:08 +0000 (UTC) Received: from mail.ukfsn.org (mail.ukfsn.org [77.75.108.10]) by pigeon.gentoo.org (Postfix) with ESMTP id 3D135E0501 for ; Wed, 24 Jun 2009 14:19:08 +0000 (UTC) Received: from localhost (smtp-filter.ukfsn.org [192.168.54.205]) by mail.ukfsn.org (Postfix) with ESMTP id 575B4DEBED for ; Wed, 24 Jun 2009 15:19:10 +0100 (BST) Received: from mail.ukfsn.org ([192.168.54.25]) by localhost (smtp-filter.ukfsn.org [192.168.54.205]) (amavisd-new, port 10024) with ESMTP id XWUB+c0rrYXf for ; Wed, 24 Jun 2009 14:02:37 +0100 (BST) Received: from wstn.ethnet (unknown [78.32.181.186]) by mail.ukfsn.org (Postfix) with ESMTP id 2FC76DEB71 for ; Wed, 24 Jun 2009 15:19:10 +0100 (BST) From: Peter Humphrey Organization: at home To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Use of sed Date: Wed, 24 Jun 2009 15:18:02 +0100 User-Agent: KMail/1.9.10 References: <200906240048.07549.peter@humphrey.ukfsn.org> <200906241328.06066.wonko@wonkology.org> In-Reply-To: <200906241328.06066.wonko@wonkology.org> 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: <200906241518.02546.peter@humphrey.ukfsn.org> X-Archives-Salt: 6316b48e-3104-43ac-8889-db60583529f5 X-Archives-Hash: 58dd756cf896cce1123e1d0c48baa589 On Wednesday 24 June 2009 12:28:05 Alex Schuster wrote: > man sed answers your second question :) s/regexp/replacement/ Attempt to match regexp against the pattern space. If successful, replace that portion matched with replacement. The replacement may contain the special character & to refer to that portion of the pattern space which matched, and the special escapes \1 through \9 to refer to the corresponding matching sub-expressions in the regexp. No mention of using a different separator, and I couldn't find any other reference either. I did look before asking. -- Rgds Peter