On 11/12/22 21:09, Les Kitchen via luv-main wrote:
1. As you've already realised, sed's "-i", "in-place" option
    just puts the output into a temporary file, which it then
    renames, so you have to pass through all the data anyway.
    And that's pretty much unavoidable, because the modification
    will change the block-alignment of all the data in the rest
    of the file (unless you did something weird, like replace the
    SQL SET command with a comment of exactly the same length).

How would Perl (e.g., with -pi -e options) perform compared with Sed?

It would still have to process the entire file, of course.

_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to