Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Perl Log file extraction help required

by protist (Monk)
on Sep 22, 2012 at 12:08 UTC ( #995093=note: print w/ replies, xml ) Need Help??

in reply to Perl Log file extraction help required

just to illustrate a different approach:

$fn = "/home/t8.g"; open $fp, "<",$fn" or die "Error in write:$!"; while (<$fp>){ print $1 while $_=~s/{(.*?)}//; }
Here is a one liner for you to see it in action. This takes user input.
perl -ne 'print $1."\n" while $_=~s/{(.*?)}//;'

Comment on Re: Perl Log file extraction help required
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995093]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-11-30 01:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (755 votes), past polls