[olug] Character Removal

Luke -Jr luke at dashjr.org
Fri Oct 19 18:24:00 UTC 2007


On Friday 19 October 2007, Obi-Wan wrote:
> > I'd like to remove all characters between a '(' and the second ')'.
>
> Perl has its uses, but is overly bloated for such a simple operation.
> Sed(1) does a wonderful job of this sort of thing.  Assuming you want
> to keep the first and last parentheses:

I used to use sed, but stopped upon learning how unportable it was.



More information about the OLUG mailing list