I have a programming question: in the *NIX world, there is a small
utility named “paste”, that can combine several files together by
columns. For example:
file “x.dat”'s content is:
file “y.dat”'s content is:
then “paste x.dat y.dat > z.dat” will generate z.dat as:
If I want to do it in Ruby, and number of files is a variable, and
each file itself can be potentially huge … what would be the most
cost efficient way of implementing this?
Thanks in advance.