js1 has asked for the wisdom of the Perl Monks concerning the following question:
I'm seeking some wisdom so I have come to you.
I have a big gzip file which I unzip from a shell script and pass to my perl program:
gzip -dc log.gz | prog.pl
Using a while(<>) loop, I read in each line and run some tests on that line.
What I need to know is, how much of that gzip file I have processed, so that I can pass a value to my progress bar to show how far through it is.
Thanks for any advice.
js1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tracking progress of gzip'd file
by arden (Curate) on Feb 09, 2004 at 20:14 UTC | |
by Fletch (Bishop) on Feb 09, 2004 at 20:40 UTC | |
|
Re: tracking progress of gzip'd file
by jsegal (Friar) on Feb 09, 2004 at 20:18 UTC | |
|
Re: tracking progress of gzip'd file
by Vautrin (Hermit) on Feb 09, 2004 at 23:07 UTC | |
by js1 (Monk) on Feb 10, 2004 at 10:14 UTC | |
by js1 (Monk) on Feb 10, 2004 at 10:42 UTC | |
by js1 (Monk) on Feb 10, 2004 at 12:04 UTC |