xtchgstr(1)

NAME
xtchgstr - replacement of strings by the specified condition

SYNOPSIS
xtchgstr -f a list of numerical attributes -c list of replacement condition [-O character string used for those not satisfying the condition by -c] [-F] [-A] [-i input filename] [-o output filename] [-z] [-t]

DESCRIPTION
This command replaces the attribute specified by -f with a character string which is given by replacement condition with -c.

PARAMETERS

-f a list of numerical attributes
    a list of numerical attributes you want to replace

-c list of replacement condition
    a list of replacement condition (target character string x: character string which x is replaced with)

-O character string used for those not satisfying the condition by -c
    Specify character string which replaces the value which does not satisfy the condition by -c. If -O is used, that value is replaced by null value.

-i input filename
    Specify the input filename for this command. If a suffix of the filename is '.gz', the command automatically unzip it beforehand. When this parameter is omitted, standard input (usulally keyboard) is regarded as input file.

-o output filename
    Specify the output filename for this command. If a suffix of the filename is '.gz', the command automatically zip the output data. When this parameter is omitted, standard output (usulally display) is regarded as output file.

OPTIONS

-F  no replacement is made for those not satisfying the condition by -c: Leave the attribute value as the original one, if the replacement condition is not satisfied

-A  create a new attribute.: If -A is not specified, replacement is done.

-z  compress the standard output by gz: When -o is omitted and this option is specified, the command output the result zipped.

-t  plain text: When this option is specified, the command treat the input and output data as plain text format.

EXAMPLE

   xtchgstr -f classification code -c 015:bread,101:milk -i dat.xt -o rsl.xt

   xtchgstr -f classification code -c 015:bread,101:milk -O undefind -i dat.xt -o rsl.xt

SEE ALSO
xtchgstr(1), xtsed(1)

WEB PAGE
http://musashi.adm.osaka-sandai.ac.jp

BUG REPORT
musashi@adm.osaka-sandai.ac.jp

AUTHORS
Yukinobu Hamuro,Naoki Katoh,Katsutoshi Yada