Ronunism has asked for the wisdom of the Perl Monks concerning the following question:
open (FILE, `gunzip -dc /usr/local/apache/logs/access.log.1.gz | grep +"dd/Mon/yyyy" |`) or die "Couldn't open gunzip pipe ($!)\n"; while (<FILE>) { # massive substitutions and DBI Calls } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: opening/grepping a gzipped file
by dws (Chancellor) on Dec 19, 2001 at 01:59 UTC | |
|
Re: opening/grepping a gzipped file
by tune (Curate) on Dec 19, 2001 at 01:40 UTC | |
|
Re: opening/grepping a gzipped file
by TomK32 (Monk) on Dec 19, 2001 at 01:50 UTC | |
|
Re: opening/grepping a gzipped file
by sparkyichi (Deacon) on Dec 19, 2001 at 01:38 UTC |