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;
In reply to opening/grepping a gzipped file by Ronunism
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |