(Video materials in preparation)
tagchange : Changes the tag name
Usage : tagchange <oldtag> <newtag>... <tagfile>
: tagchange -p <prefix> <tagfile>
: tagchange -r <tagfile>
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
In the first form:
Changes tag name of <oldtag> to <newtag> in <tagfile>.
<oldtag>/<newtag> pair can be specified more than once.
In the second form:
Prepends "<prefix>." to the beginning of all tag names in <tagfile>.
If tags already have a prefix, the prefix is replaced with <prefix>.
In the third form:
If tags already have a prefix, the prefix is removed.
If <tagfile> is omitted or specified as "-" then the command reads
from standard input.
If <tagfile> is a zero-byte file, an error occurs.
If <tagfile> is a null file (contains only a tag line), the command
processes normally.
Change tag.
$ cat data
TAG1 TAG2 T.TAG3 T.TAG4
a b5 9 10
a b1 40 20
a b3 3 30
$ tagchange TAG1 tag5 T.TAG3 tag6 data
tag5 TAG2 tag6 T.TAG4
a b5 9 10
a b1 40 20
a b3 3 30
Prepends or change tag prefix.
$ tagchange -p X data
X.TAG1 X.TAG2 X.TAG3 X.TAG4
a b5 9 10
a b1 40 20
a b3 3 30
Remove tag prefix.
$ tagchange -r data
TAG1 TAG2 TAG3 TAG4
a b5 9 10
a b1 40 20
a b3 3 30