Suppose I have 2 numbers each in 3 files
file1 contains
100
200
file2 contains
333
444
file3 contains
505
606
How can I create a new file which will have all possible combinations of numbers from the 3 files, pasted side by side?
The new file will contain the following:
100-333-505
100-333-606
100-444-505
100-444-606
200-333-505
200-333-606
200-444-505
200-444-606
Currently, I have more than 8000 numbers in each file. So when I create a new file with the possible combinations from these 3 big files, this process needs to be fast. And because 8000 numbers from 3 files would produce billions of combinations, I need to limit the new file to 10 million numbers.
How can I achieve this?
Thanks,
Pramod
file1 contains
100
200
file2 contains
333
444
file3 contains
505
606
How can I create a new file which will have all possible combinations of numbers from the 3 files, pasted side by side?
The new file will contain the following:
100-333-505
100-333-606
100-444-505
100-444-606
200-333-505
200-333-606
200-444-505
200-444-606
Currently, I have more than 8000 numbers in each file. So when I create a new file with the possible combinations from these 3 big files, this process needs to be fast. And because 8000 numbers from 3 files would produce billions of combinations, I need to limit the new file to 10 million numbers.
How can I achieve this?
Thanks,
Pramod