<html><div style='background-color:'><P>Perl isnt my thing, sorry... I've got you a couple of links<BR><BR><A href="http://www.pageresource.com/cgirec/ptut9.htm">http://www.pageresource.com/cgirec/ptut9.htm</A><BR><BR><A href="http://perl.about.com/library/weekly/aa123100a.htm">http://perl.about.com/library/weekly/aa123100a.htm</A><BR></P>
<P>It really shouldn't be that hard to throw together a lil loop to do what you require<BR>I'm sure you'll work it out</P>>From: hemstock@tiscali.co.uk >Reply-To: South Derby LUG General Mailing List <SDERBY@MAILMAN.LUG.ORG.UK>>To: "South Derby LUG General Mailing List" <SDERBY@MAILMAN.LUG.ORG.UK>>Subject: RE: [Sderby] perl question >Date: Thu, 15 Jan 2004 09:00:47 +0000 > > >-- Original Message -- > >From: "Flashı³ Egis-Minsky" <ENTERICCOATED@HOTMAIL.COM>> >To: sderby@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@MAILMAN.LUG.ORG.UK>> > > > > >
<DIV>
<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>>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></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! > > > >_______________________________________________ >Sderby mailing list >Sderby@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? > > >_______________________________________________ >Sderby mailing list >Sderby@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 </div><br clear=all><hr>Reduce spam in your inbox with <a href="http://g.msn.com/8HMBENUK/2752??PS=">MSN 8's </a> intelligent junk e-mail filters.</html>