Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Extracting Log File data for a given date range

by vlashua (Initiate)
on Dec 13, 2011 at 16:54 UTC ( [id://943387]=note: print w/replies, xml ) Need Help??


in reply to Extracting Log File data for a given date range

[set up input file, output file FILE] use Date::Manip::DM5; @argdates = ParseDate(@ARGV); for inputfile, read line from input file { @linedates = ParseDate(inputline) for @argdates { if $linedates[0] eq $_ or $linedates[1] eq $_ then print FILE inputline; } }

Date::Manip will take virtually any date format as input

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found