Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Seach for data that is on a different line from the search string

by stevieb (Canon)
on Mar 31, 2012 at 02:40 UTC ( [id://962708]=note: print w/replies, xml ) Need Help??


in reply to Seach for data that is on a different line from the search string

EDIT: Scratch this answer... I assumed all data on the same line, completely somehow ignoring the title :) Need to see a sample of the actual data in code blocks to better understand.

perl -nE 'say $1 if /\b0x014E\b/ && /.*(Output.*?)\s[^\d]/;' data.txt
  • Comment on Re: Seach for data that is on a different line from the search string
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found