Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Need a little help appending lines

by swampyankee (Parson)
on Sep 12, 2007 at 14:45 UTC ( [id://638577]=note: print w/replies, xml ) Need Help??


in reply to Need a little help appending lines

If all the lines in your first file look like those in the sample, why not just read the second file (the one with the port numbers) and build the first file from scratch?

I think some more information about the first file (Address1=, etc) may be in order, as I suspect there is much more to this file than has been revealed.


emc

Information about American English usage here and here.

Any New York City or Connecticut area jobs? I'm currently unemployed.

Replies are listed 'Best First'.
Re^2: Need a little help appending lines
by perl4ever (Novice) on Sep 12, 2007 at 15:52 UTC
    There's a lot more to the file where I get the port number from, I just used an example, but here's a more descriptive example of the file I pull the port out of: example.txt:, line from example txt:
    entry_entry_host_entry 8080/tcp # hostname entry entry

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2025-06-17 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.