in reply to Parsing a large file 80GB .gz file and making an output file with specifice columns in this original file.
My approach is usually to parallelize the decompression and the string handling by using the two-argument form of open:
my $filename= "some.file.gz"; my $cmd= "gunzip -cd '$filename' |"; open my $fh, $cmd or die "Couldn't decompress '$filename' via [$cmd]: $! / $?";
This piped approach also works nicely with transfers over ssh connections.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a large file 80GB .gz file and making an output file with specifice columns in this original file.
by salva (Canon) on Jul 16, 2013 at 11:47 UTC | |
by Corion (Patriarch) on Jul 16, 2013 at 12:02 UTC |