[plug] Sed regex help

James Devenish devenish at cyllene.uwa.edu.au
Wed Jan 29 17:15:19 WST 2003


On Wed, Jan 29, 2003 at 05:02:07PM +0800, Brad Campbell wrote:
> -e worked but only if I had single quotes.
[...]
> the @ delimiter did not work and complained of an unterminated s 
> command.

Yikes! -e shouldn't make a difference! And you should be able to use
any delimiter (e.g. simply replace @ with , or ~ or whatever, other
than those characters that will themselves need to be escaped). Hmm.

As an aside: if you are writing scripts that other people might use,
try to stick to POSIX or have your accompanying and inline documentation
state the need for Bash. A lot of scripts emerge from Linux circles with
the assumption that /bin/sh is Bash. That almost makes the scripts feel
like they've come from Microsoft ("it's completely standard. apart from
the bits that aren't.").




More information about the plug mailing list