(Video materials in preparation)
tagjoinx : Joins tag data in all possible combinations
Usage : tagjoinx <file1> <file2>
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Joins all records in tag-formatted files <file1> and <file2> in all
possible combinations.
$ cat file1
CODE NAME AGE SEX
0003 Newton 026 WOM
0005 Watson 050 MAN
0007 Nelson 042 WOM
$ cat file2
SEQ CODE A1 A2 A3
001 0003 30 50 71
001 0004 58 71 20
001 0005 82 79 16
$ tagjoinx file1 file2
CODE NAME AGE SEX SEQ CODE A1 A2 A3
0003 Newton 026 WOM 001 0003 30 50 71
0003 Newton 026 WOM 001 0004 58 71 20
0003 Newton 026 WOM 001 0005 82 79 16
0005 Watson 050 MAN 001 0003 30 50 71
0005 Watson 050 MAN 001 0004 58 71 20
0005 Watson 050 MAN 001 0005 82 79 16
0007 Nelson 042 WOM 001 0003 30 50 71
0007 Nelson 042 WOM 001 0004 58 71 20
0007 Nelson 042 WOM 001 0005 82 79 16
$ cat file2 | tagjoinx file1
$ cat file2 | tagjoinx file1 -
$ cat file1 | tagjoinx - file2