Duntie - Decomposition of a field into some fields

[ English | Japanese ]

[visit D-home]

SYNOPSIS

Duntie [ -t default-delimiter ] [ -z default-options ] field-name field-format-list [ input-file.. ]

DESCRIPTION

Duntie separates the field-name fields into one or more fields, applying the field-format-list. The value part of the field-name field is regarded as a line. Then the field-format-list is applied as an input format (as in DfromLine), and the result fields substitute the original field. When the field-name field repeats, this substitution process repeats for each occurrence of the field-name field.

OPTIONS

-t default-delimeter
gives the default delimiter for the field-format-list. Default value is TAB (control character HT).
-z default-options
gives the default options (lrqxQb). Default value is none.
-D [i/o]datautf=8|16|32
UTF I/O feature (see manual page of UTF I/O feature.)

ENVIRONMENT

Ddatautf, Didatautf, Dodatautf
for UTF I/O feature.

EXAMPLES

Command:

Duntie -t / date "y,m,d"

Input file:

date:1997/12/14
price:135.24
date:1998/10/08
price:122.87

Result:

y:1997
m:12
d:14
price:135.24
y:1998
m:10
d:08
price:122.87

DIAGNOSTICS

See the manual of D_msg.

SEE ALSO

Dintro, Dtie, D_fmt, D_msg.

AUTHOR

MIYAZAWA Akira


miyazawa@nii.ac.jp
2003