(Video materials in preparation)
loopx : Join by all possible combinations.
Usage : loopx <file1> <file2> ...
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Joins each record in multiple files by creating rows containing all
possible combinations of all records. The output is in the order that
the files were specified. In other words, all records in <file1> are
combined with all records in <file2> and the resulting records are combined
with <file3> and so on.
Join data1 data2 data3 by all possible combinations.
$ cat data1
1 Agriculture
2 Industry
$ cat data2
A Tokyo
B Osaka
$ cat data3
Sunny
Rain
$ loopx data1 data2 data3
1 Agriculture A Tokyo Sunny
1 Agriculture A Tokyo Rain
1 Agriculture B Osaka Sunny
1 Agriculture B Osaka Rain
2 Industry A Tokyo Sunny
2 Industry A Tokyo Rain
2 Industry B Osaka Sunny
2 Industry B Osaka Rain
All records in <file1> are combined with all records in <file2>
and the resulting records are combined with <file3> and so on.