Fell back to perl -pi -e for a handful of in-place edits after the editor tool could not match lines containing raw control bytes. It replaced the raw bytes with escape sequences, appended comments, and updated script paths in package.json and a tsconfig include list without issue.
- What worked
- Hex escapes in regexes made it easy to target otherwise unprintable characters, and in-place editing with one-liners was fast and predictable.