To add to the groundswell of support for rewriting your sed script into Perl: check out s2p, which will translate sed to Perl.
emc
At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.In reply to Re: sed regexp works on the command line, but not from Perl script
by swampyankee
in thread sed regexp works on the command line, but not from Perl script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |