From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0813ca81b8948388dfca9fed6467e9a7@quintile.net> References: <0813ca81b8948388dfca9fed6467e9a7@quintile.net> Date: Mon, 20 Aug 2012 14:05:31 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] sam command language question Topicbox-Message-UUID: aca6951e-ead7-11e9-9d60-3106f5b1d025 On 20 August 2012 13:12, Steve Simon wrote: > This is what I tried: > > ,x/label="[^"]+"/ { > x/ [a-z]/ | tr a-z A-Z > } > > sadly the inner 'x' searches onward in the file and not in > the selection (dot) generated by the outer 'x'. I do not see the reported behaviour. For me it searches through the dot prepared by the first 'x' command... Thanks to the 'space' character in the second 'x' it however capitalizes only the first letter of any word in paranthesis which has a space in front of itself. Ruda