in reply to File > 2G under linux
not sure about the filesystem issues, but you could try just uncompressing the file to STDOUT, read that line-by-line and do your parsing, and write to a pipe that compresses. I have done this using gzip with success (not using large files, just in general). something like this (UNTESTED):
open(INPUT, "/usr/bin/gzip -d -c '$filename' |") open(OUTPUT, "| /usr/bin/gzip > '$filename'"); while(<INPUT>) { # munge print OUTPUT; } close INPUT; close OUTPUT;
You could also look at Compress::ZLib, which might work for you...
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File > 2G under linux
by MidLifeXis (Monsignor) on Sep 11, 2003 at 17:12 UTC | |
by edan (Curate) on Sep 14, 2003 at 07:21 UTC |