xtsed(1)

NAME
xtsed - string replacement by regular expression

SYNOPSIS
xtsed -f list of attributes -c regular expression -v character string for replacement [-A] [-g] [-i input filename] [-o output filename] [-z] [-t]

DESCRIPTION
For an attribute specified by -f, replace the character string that matches a regular expression specified by -c with a character string specified by -v.

PARAMETERS

-f list of attributes
    a list of attributes for which replacement is done

-c regular expression
    specify a reguar expression for character stirngs that you want to replace

-v character string for replacement
    character string you will replace with

-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

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

-g  global replacement: replace all substrings that match a regular expression

-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

 xtsed -f zip_code -c '^62' -v '###' -i dat.xt -o rsl.xt

 xtsed -f zip_code:permutation_code -c '^62' -v '' -i dat.xt -o rsl.xt

 xtsed -f zip_code -c 'abc' -v '(&)' -i dat.xt -o rsl.xt

SEE ALSO
xtchgstr(1), xtcal(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