Bruno Haible <[EMAIL PROTECTED]> writes:

> You also combined adjacent sed invocations. Which rule are you using here?
> When is it safe to combine
>     sed -e "$expr1" | sed -e "$expr2"
> into
>     sed -e "$expr1" -e "$expr2"
> ?

That's a tricky question to answer in general, but if $expr1 and $expr
are both simple s/foo/bar/ commands (which is the case here) the
transformation is always safe.


Reply via email to