We have a pipeline that produces millions of .tar.gz files, each with one text file in them. We need to deliver the text files (gzipped, but not tarred).
I know I can easily pipeline the output via something like
tar xvf output-059a270d.tar.gz output-059a270d.txt && gzip output-059a270d.txt
But is there any way to take advantage of the details of the tar/.gz format to avoid having to gunzip and re-gzip the result?
4