On Wed, 2003-02-26 at 16:34, Robert Anderson wrote:

> However, note that _any_ new choice of delimiter will not only fail for
> the case of the chosen character, but will also fail for the characters
> '@' and '\' which are always metacharacters on the RHS of a sed
> expression.  I've seen '@' in particular in pathnames out in the wild;
> it's a good prefix to get files to sort to the top of an 'ls'.
> 
> With a preprocessing step, you can solve all three problems
> simultaneously (arbitrary delimiter, '@', and '\').

Gah.  s/@/&/.  Or s/@/\\&/, actually. :)

Bob




Reply via email to