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

Reply via email to