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

Re: Misunderstanding negative look behind

by cosimo (Hermit)
on May 30, 2012 at 11:00 UTC ( [id://973258]=note: print w/replies, xml ) Need Help??


in reply to Misunderstanding negative look behind

Maybe what you want is positive look-behind instead of negative?

$ perl -lane 'print if /(?<=10\.20\.11\.99\s)kvm-test-v06.*/' your-hos +ts-file 10.20.11.99 kvm-test-v06.example.com kvm-test-v06

Log In?
Username:
Password:

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

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

    No recent polls found