I have a large tar file containing millions of files. For efficiency reasons I don't want to untar the files to disk.
Rather, given a desired filename, I would like to write a script e.g. Python to pull the relevant chunk of data from the tar file.
Is there an easy way to create an index telling me the starting byte and length of every file in the tar file e.g. I could dump out to disk as an index for use in the abovementioned Python script?
Maybe the tar command can do this but I'm not seeing anything obvious in the man page.
The tar is not compressed.
Thanks in advance.