Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 taking refuge in the Monastery: (9)
As of 2014-12-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls