<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@BIM7.COM>
<DIV></DIV>>Reply-To: South Derby LUG General Mailing List <SDERBY@MAILMAN.LUG.ORG.UK>
<DIV></DIV>>To: <SDERBY@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>>Hi 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>>
<DIV></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 to 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 anyone 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>