From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 12 Mar 2010 19:39:33 -0500 To: 9fans@9fans.net Message-ID: <283a86dd6eb3f7deb7fbc607facca4e6@coraid.com> In-Reply-To: References: <6a0f1eb96a16aed348cd76c05abc2286@ladd.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] watching plumber Topicbox-Message-UUID: e7881b78-ead5-11e9-9d60-3106f5b1d025 > Ok, thats fine. But > ;9 echo abcdefdffghi | 9 sed 's/(abc(d?f)*)(ghi)/\1/' > > this I don't understand... > maybe it's too late for me... you're re doesn't match at all. therefore no substitutation is made. perhaps it would be easier to see with this formulation: 9 echo abcdefdffghi | 9 sed -n 's/(abc(d?f)*)(ghi)/\1/p' - erik