uspTukubaiコマンドに関する様々な資料がここにあります。

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

Alphabetical list

(Video materials in preparation)

tagcat(USP)

Name

tagcat : cat multiple tag files

Synopsis

Usage   : tagcat <file1> <file2> ...

Option  : -d<dummy>

Version : Tue Jan  9 09:02:34 JST 2024

Edition : 1

Description

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.

Example 1

$ 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

Example 2

-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