Re: your mail

From: Reenen Kroukamp <reenen@dont-contact.us>
Date: Fri, 15 May 1998 11:10:20 +0200

You can also use gawk :
tail -f access.log | gawk '{printf("%s - %s %s %s\n", strftime("%H:%M:%S", $1), $3, $4, $7)}'

Which prints out the date, ip, hit/miss/etc, location

-Reenen

On Fri, May 15, 1998 at 09:30:58AM +0200, Heiko Schlittermann wrote:
> On Fri, May 15, 1998 at 03:26:24PM +1000, Andrew Specht wrote:
> : Hi,
> :
> : 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?
>
> perl -pe 's/^\d+\.\d+/localtime $&/e' access.log
>
> which prints to stdout
>
> perl -i -pe 's/^\d+\.\d+/localtime $&/e' access.log
>
> which edits in place.
>
>
> Heiko
> ---------------------------------------------------------------
> datom * internet * support ** Heiko Schlittermann & Partner GbR
> mailto:is@datom.de http://www.datom.de/is voice:+49-351-8029981
> Heiko Schlittermann HS12-RIPE finger:heiko@datom.de -----------

-- 
  Rainy days and automatic weapons always get me down.
Received on Fri May 15 1998 - 02:15:53 MDT

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