> From: "Andrew Specht" <andrew@iaccess.com.au>
> I was wondering if there is a script out there somewhere that converts the
> number in access.log (or store.log) to the date and time?
To convert the time in a access.log you could use the following:
perl -p -e 's/^(\d\.\d)/scalar(localtime($1))/e' access.log
Note that the miliseconds get lost this way!
Read the perl manual on localtime if you don't like the output of
scalar(localtime).
Regards,
-- Bernd bziller@ba-stuttgart.de ------------------------------------------------- http://www.ba-stuttgart.de/~bziller/ Perry Rhodan - Blind Guardian - Morwen PagesReceived on Thu May 14 1998 - 23:30:06 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:40:11 MST