I'm trying to be a bit effective and need a script or command solution.
Say I make a file with 2 columns, or two files with one column, whichever is easier:
AA1 B2 ZZ1 YYY XX1
AA2 B2 ZZ2 YYY XX2
AA3 B3 ZZ3 YYY XX3
AA4 B4 ZZ4 YYY XX4
ZZ5 YYY XX5
ZZ6 YYY XX6
ZZ7 YYY XX7
There is an uneven number of entries. Now, I want to make a new file (preferably with some other input as well, though lets start here) that takes every value in the first column and combines that with every value in the second column (they will always have unequal number of lines) and outputs results as:
AA1 B2 ZZ1 YYY XX1
AA1 B2 ZZ2 YYY XX2
[...]
AA4 B4 ZZ1 YYY XX1
AA4 B4 ZZ2 YYY XX2
So, cycle through all values in column 1 in order, combining them with each value in column 2 in order.