(Video materials in preparation)
tagcat : cat multiple tag files
Usage : tagcat <file1> <file2> ...
Option : -d<dummy>
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Runs cat on tag files <file1> <file2> ...
Output is a tag file.
If the tags are different in each file, the sum of the tags becomes
a new tag. In this case, the fields for tags that don't exist in a
file are padded with the underscore ("_"). You can change the
padding character with the -d option.
If <file> is not specified or specified as "-" then the command
reads from standard input.
$ cat file1
TAG1 TAG2 TAG3 TAG4
a1 b1 c1 d1
a2 b2 c2 d2
$ cat file2
TAG2 TAG3 TAG4 TAG5
e1 f1 g1 h1
e2 f2 g2 h2
$ tagcat file1 file2
$ cat file1 | tagcat - file2
$ cat file2 | tagcat file1 -
TAG1 TAG2 TAG3 TAG4 TAG5
a1 b1 c1 d1 _
a2 b2 c2 d2 _
_ e1 f1 g1 h1
_ e2 f2 g2 h2
-d Option
$ tagcat -dxx file1 file2
TAG1 TAG2 TAG3 TAG4 TAG5
a1 b1 c1 d1 xx
a2 b2 c2 d2 xx
xx e1 f1 g1 h1
xx e2 f2 g2 h2