Is there a way to change the folder structure inside a tar file without extracting it to disk first?
For example, I have the following file/folder structure in a tar file, test.tar.
dir1/ dir1/file1 dir1/file2
I would like the contents to be modified to.
dir2/dir1/ dir2/dir1/file1 dir2/dir1/file2
Thank you in advance.