I am attempting to transform the paths of a tar file coming from standard input without having to extract the tar first.
This is an apparent duplicate of this question, I am looking for a solution that can be accomplished without having to extract in order to simplify my script, so I do not care if the performance is the same as extracting.
I am creating a tar from git archive, and piping the result to an ssh process that will run on another machine that does not have the --transform option for tar. I will therefore need to transform before sending it over to ssh. I could always extract to a temporary directory, and then recreate another tar with the transform, but I am looking for a one-line solution to temporarily pop into an existing script.