(Video materials in preparation)
tagloopx : Join by all possible combinations.
Usage : tagloopx <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
NUM CATEGORY
1 Agriculture
2 Industry
$ cat data2
SYM DISTRICT
A New_York
B Boston
$ cat data3
WEATHER
Sunny
Rainy
$ tagloopx data1 data2 data3
NUM CATEGORY SYM DISTRICT WEATHER
1 Agriculture A New_York Sunny
1 Agriculture A New_York Rainy
1 Agriculture B Boston Sunny
1 Agriculture B Boston Rainy
2 Industry A New_York Sunny
2 Industry A New_York Rainy
2 Industry B Boston Sunny
2 Industry B Boston Rainy
All records in <file1> are combined with all records in <file2>
and the resulting records are combined with <file3> and so on.