Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Merging files, 1 line for every 10

by Marshall (Canon)
on Sep 07, 2011 at 04:06 UTC ( [id://924523]=note: print w/replies, xml ) Need Help??


in reply to Merging files, 1 line for every 10

You have not adequately described the problem. Free Dictionary defines "merge" to mean : merge. In this case, perhaps combining two flows stepwise.

This term: "evenly merge" does not have a clear definition that I know of.

Did you mean: ten rows from File1, then one row from File2?
That seems rather easy - too easy for this question - so what is it that you mean by "evenly merge".

Ooops, update: I guess it really is simple. My bad. Loop for 10 lines from File1 and send each line to File3. Send one line from File2 to File3. Loop back for the next 10 lines from File1. What's the problem?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2024-04-23 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found