<div dir="ltr">attached is "just enough" tar --transform for the kernel use case. adding the missing FLAGS syntax checking is easy, and sed'sĀ unescape_delimited_string() is easily moved into lib for reuse for fixing the PATTERN part of s/PATTERN/REPLACEMENT/FLAGS, but the REPLACEMENT part seems hairy enough that i thought i'd stop and ask before ploughing on in this direction...</div>