[olug] Character Removal

Luke -Jr luke at dashjr.org
Fri Oct 19 19:25:20 UTC 2007


On Friday 19 October 2007, Obi-Wan wrote:
> >> 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.
>
> The Unix regex library that drives sed hasn't changed materially
> in decades.  Sed works the same on every version of Unix (and now
> Mac OS/X) that I've ever used in the last 17 years.  Running it
> in Windoze does require using Cygwin or another add-on kit, but
> perl isn't much different in that regard.
>
> I'd be curious to hear what sort of portability issues you encountered.

My sed scripts just didn't work on some BSD my coworker used.
This was in the past year.




More information about the OLUG mailing list