Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: opening/grepping a gzipped file

by tune (Curate)
on Dec 19, 2001 at 01:40 UTC ( #132942=note: print w/ replies, xml ) Need Help??


in reply to opening/grepping a gzipped file

Why are you using ` to open a pipe? Why not "?
Maybe

open (FILE, "gunzip -dc /usr/local/apache/logs/access.log.1.gz | grep +\"dd/Mon/yyyy\" |") or die "Couldn't open gunzip pipe ($!)\n";
will be better

--
tune


Comment on Re: opening/grepping a gzipped file
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-07-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls