Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: Finding and extracting lines of text

by Cine (Friar)
on Jul 29, 2003 at 21:52 UTC ( [id://279007]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Finding and extracting lines of text
in thread Finding and extracting lines of text

If its just for you and not for processing, then perl is overdoing it and grep -A3 "line searching for" file.log is much easiere.
Else you have to make a little state machine to handle the cases properly (as in before found, searching for lines between, printing the next info and searching for the next data)

T I M T O W T D I

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found