xtchgnum(1)

NAME
xtchgnum - replacement of numerical value by the specified condition

SYNOPSIS
xtchgnum -f field list -R a list of numerical intervals [-v a list of character strings] [-O character string standing for vaules not satisfied by -c] [-F] [-A] [-r] [-i input filename] [-o output filename] [-z] [-t]

DESCRIPTION
This command replaces the numerical attributes specified with -f by character strings which are given by replacement condition with -c.

PARAMETERS

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

-R a list of numerical intervals
    Specify the numerical intervals targeted for replacement (1.1_2.5 : at least 1.1 and less than 2.5)

-v a list of character strings
    Specify character strings which replaces the numerical intervals specified by -R

-O character string standing for vaules not satisfied 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.1

-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 done for values which does not satisfy the condition by -c: This flag leaves 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.

-r  change the way of specifying the interval: With this option, '1.1_2.5' is treated as the interval whose value is larger than 1.1 and less than or equal to 2.5'.

-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

 xtchgnum -f amount -R MIN,5,10,MAX -v Max,medium,Min -i dat.xt -o rsl.xt

 xtchgnum -f amount -R 0,5,10,20 -v Max,medium,Min -O other amount -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