Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Regex to extract certain lines only from command output/text file.

by arnaud99 (Beadle)
on Mar 08, 2013 at 03:16 UTC ( [id://1022339]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regex to extract certain lines only from command output/text file.
in thread Regex to extract certain lines only from command output/text file.

Hi,

In response to: The OP has only one "9 hostname13 Generic", so how did it become two, in the final output.

I added an extra one in the __DATA__ section, for testing purposes. Only one was showing in the output (the last one in __DATA__ , due to an empty line at the end of the same __DATA__ section.

(The fix is also posted in one of the replies)

Thanks.

Arnaud

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found