From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <50F00109.3070900@yahoo.fr> Date: Fri, 11 Jan 2013 13:09:45 +0100 From: Nicolas Bercher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: 9fans@9fans.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [9fans] How to do this with [acme | sam | sed ] ? Topicbox-Message-UUID: 05d70574-ead8-11e9-9d60-3106f5b1d025 On 11/01/2013 12:19, Peter A. Cejchan wrote: > ## How to do this with [acme | sam | sed ] ? > # compound commands > # remove outermost pair of braces: abcd(x+(y-z))efgh --> abcdx+(y-z)efgh > [ no idea :-( ] Is this enough? echo 'abcd(x+(y-z))efgh' | sed 's;\(;;' | sed 's;(.*)\);\1;' Nicolas