Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Below is the code i am trying to parse the log file and also after running i am getting the lines which i am
attaching here below the title OUTPUT.
#!/usr/bin/perl -w open(F,"build.log") or die "can't open $!\n"; while($line=<F>) { chomp $line; @a=$line; foreach(@a) { #print "$_\n"; if($_=~/Building IVR Designer version /) { #print "$_\n"; push @b,$_; for(@b) { @c=split(" ",$_); print "@c\n"; #for(@c) # { # @m=split(" ",$_); # print "@m\n"; } } } } }
OUTPUT
Info: Wed Mar 28 18:53:03 2007:Building IVR Designer version 06.00.08....
Info: Wed Mar 28 18:53:03 2007:Building IVR Designer version 06.00.08....
Info: Wed Mar 28 18:56:31 2007:Building IVR Designer version 6.0 Completed !!!.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to extract fields from the output and how to convert it to html format
by gloryhack (Deacon) on Apr 03, 2007 at 09:36 UTC | |
|
Re: how to extract fields from the output and how to convert it to html format
by lima1 (Curate) on Apr 03, 2007 at 08:12 UTC | |
|
Re: how to extract fields from the output and how to convert it to html format
by Anonymous Monk on Apr 03, 2007 at 07:45 UTC |