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

Re: Print specific data based on regex search in previous line

by NetWallah (Canon)
on May 08, 2018 at 05:28 UTC ( [id://1214190]=note: print w/replies, xml ) Need Help??


in reply to Print specific data based on regex search in previous line

one-liner version:
perl -n -E 'BEGIN{ $/=" LR_PLANE"}; m/FILTER/ and print "$_\n" for sp +lit "\n";print "\n"' Your_file.txt

                Memory fault   --   brain fried

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found