http://www.perlmonks.org?node_id=1206592


in reply to Grep logs by start date and end date in different directories

See also Re: GetOpt Organization for some inspirations for command line processing and Re: Looping through multiple directories for another way to process your logs.

And there are modules like Parse::Syslog, Apache::Log and Parse::AccessLog (newer) on CPAN.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help