A fast way to read last line of gzip archive ?
garabik-news-2005-05 at kassiopeia.juls.savba.sk
garabik-news-2005-05 at kassiopeia.juls.savba.sk
Sun May 24 06:37:16 EDT 2009
Barak, Ron <Ron.Barak at lsi.com> wrote:
>
>
>
> I thought maybe someone has a way to unzip just the end portion of the
> archive (instead of the whole archive), as only the last part is needed
> for reading the last line.
dictzip (python implementation part of my serpento package)
you have to compress the file with dictzip, instead of gzip, though
(but dictzipped file is just a special way of organizing the gzip file,
so it remains perfectly compatible with gunzip&comp.)
--
-----------------------------------------------------------
| Radovan GarabĂk http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
More information about the Python-list
mailing list