Re: Loggfile extraction by date

From: Mikel Lindsaar <mlmail@dont-contact.us>
Date: Tue, 3 Dec 1996 23:44:12 +1100 (EST)

On Tue, 3 Dec 1996, Cato Antonsen wrote:

> spanning several months. Is there a way to extract only those entries
> from one spesific month?
>

If you are using unix a simple way would be

cat access.log | grep "Dec/1996" > extracted.file

or if you want to pipe it as input to another program:

cat access.log | grep "Dec/1996" | insert_your_program_here

Good luck

Regards,

Mikel

-- 
-----------------------------------------------------------
Mikel Lindsaar        |  "The dream is the foundation,
mikel@cynet.net.au    |        of our society!" 
-----------------------------------------------------------
Cynet!  The Business ISP!        http://www.cynet.net.au/
Hardly Normal Internet Sales!        http://sales.net.au/
-----------------------------------------------------------
Received on Tue Dec 03 1996 - 04:45:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:49 MST