question on using tarfile to read a *.tar.gzip file

2010-02-07 Thread m_ahlenius
Hi, I have a number of relatively large number *tar.gzip files to process. With the py module tarfile, I see that I can access and extract them, one at a time to a temporary dir, but that of course takes time. All that I need to do is to read the first and last lines of each file and then move

Re: question on using tarfile to read a *.tar.gzip file

2010-02-07 Thread Tim Chase
Is there a way to do this, without decompressing each file to a temp dir? Like is there a method using some tarfile interface adapter to read a compressed file? Otherwise I'll just access each file, extract it, grab the 1st and last lines and then delete the temp file. I think you're looking

Re: question on using tarfile to read a *.tar.gzip file

2010-02-07 Thread m_ahlenius
On Feb 7, 5:01 pm, Tim Chase python.l...@tim.thechases.com wrote: Is there a way to do this, without decompressing each file to a temp dir?  Like is there a method using some tarfile interface adapter to read a compressed file?  Otherwise I'll just access each file, extract it,  grab the