On Feb 7, 5:01 pm, Tim Chase 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 1st and last lines and
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
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 o