I have a tar file original.tar
, and I need to untar it and then re-tar it for some reason. I do not want to untar it to disk and then tar from disk. I hope I can untar the file into stdout, and then tar the files from stdin, I tried this command but failed:
tar xf original.tar -O | tar cf out.tar -T -
But I got plenty of error messages:
Is there any method that I can do this correctly?