Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( #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


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-30 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls