[Sderby] perl question
hemstock at tiscali.co.uk
hemstock at tiscali.co.uk
Thu Jan 15 09:01:04 GMT 2004
>-- Original Message --
>From: "Flash¹³ Egis-Minsky" <entericcoated at hotmail.com>
>To: sderby at mailman.lug.org.uk
>Subject: RE: [Sderby] perl question
>Date: Wed, 14 Jan 2004 23:48:26 +0000
>Reply-To: South Derby LUG General Mailing List <sderby at mailman.lug.org.uk>
>
>
><html><div style='background-color:'><DIV class=RTE>
<P>sounds like you need to do your loop revision... and file buffering and
writing... (I did that at A/S level!) </P></DIV>
<DIV></DIV>>From: "Gareth" <GARETH at BIM7.COM>
<DIV></DIV>>Reply-To:
>South Derby LUG General Mailing List <SDERBY at MAILMAN.LUG.ORG.UK>
<DIV></DIV>>To: <SDERBY at MAILMAN.LUG.ORG.UK>
<DIV></DIV>>Subject: [Sderby] perl question
<DIV></DIV>>Date: Wed, 14 Jan 2004 23:22:21 -0000
<DIV></DIV>>
<DIV></DIV>>H
> Guys
<DIV></DIV>>
<DIV></DIV>>I've got a log file from MMDF, and I need to convert the time
and date part
<DIV></DIV>>of each entry to something readable!
<DIV></DIV>>
<DIV></DIV>>the format is like....
<DIV></DIV>>
<DI
>></DIV>>1074116680.910 193.129.29.1 Some text
<DIV></DIV>>
<DIV></DIV>>I found Perl can convert the time by using.... print ctime(1074116680.910),
<DIV></DIV>>but I need to make a script t
> read the logfile and the 700 entries,
<DIV></DIV>>outputting to a new file with a nice readable date and time,
but keeping the
<DIV></DIV>>other two bits of information, IP address and message intact.
<DIV></DIV>>
<DIV></DIV>>Has a
>yone done something similar? Any tips much appreciated.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Gareth </div><br clear=all><hr>Subscribe to MSN 8 today for
a better internet experience and <a href="http://g.msn.com/8HMAENUK/2728??PS=">save
>over 25%</a> on the usual price!</html>
>_______________________________________________
Sderby mailing list
Sderby at mailman.lug.org.uk
http://mailman.lug.org.uk/mailman/listinfo/sderby
Web site: http://sderby.lug.org.uk/
wiki: http://www.sderby.lug.org.uk/cgi-bin/wiki.pl
Join us on IRC:
>irc.lug.org.uk #sderby
Then perhaps you could submit some sample code?
More information about the Sderby
mailing list