Re: [SQU] Converting time format

From: Thomas Adam <thomas_adam16@dont-contact.us>
Date: Tue, 6 Feb 2001 03:01:47 -0800 (PST)

I am glad that we were of some help to you!!!

Thomas Adam

--- Awie <awie@eksadata.com> wrote: > All,
>
> I created a script;
>
> /usr/bin/perl -pe 's/\d+/localtime $&/e;'
>
> and save it to be a file named "convert" in
> directory /bin. Then I run "chmod +x /bin/convert"
>
> After all, I run "cat access.log | /bin/convert".
>
> IT WORKS !
>
> I got a readable format time & date of my
> access.log. I don't know whatever my doing is
> perfect or not, but I got what I want. Instead
> remembering unfriendly parameter of perl, I prefer
> to run my convert file to read my log file.
>
> Many thanks for Henrik, Thomas, and Leonardo that
> gave me suggestions to get this solution.
>
> Best Regards,
>
> Awie
>
>

=====
Thomas Adam
Linux Co-ordinator for The Purbeck School

e-mail (school): n6tadam@users.purbeck.dorset.sch.uk
e-mail (yahoo) : thomas_adam16@yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Feb 06 2001 - 04:08:17 MST

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