[stuff cut out]

>> I'd like it to be able to work on any number of files, and they might be
>> huge (20+ MB).  I was thinking it'd be good to open up all the files at
>> once, and write out the new file one line at a time, but I can't figure
>> out how to set up an array of filehandles.  I'm not sure if that's the
>> easiest way...
>> 
>> Can someone point me in the right direction?
> 
> If you are running on a Unix like system then use paste
> 
> man paste


Yes, I learned about paste today, very handy.  Unfortunately paste doesn't
always work right...

t1
10  14
11  15
12
13

t2
20  26
21  27
22
23
24
25

% paste t*
10      14      20      26
11      15      21      27
12      22
13      23
        24
        25

I would think the 22-25 should be lined up under the 21, but it doesn't do
it like that.  Also, paste has a limit of 12 input files, and I can envision
cases where we'd need to "paste" ~100 single or double column files of
different lengths.

Thanks for all the responses.

- Bryan


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to