Dcat - concatenate D-files

[ English | Japanese ]

[visit D-home]

SYNOPSIS

Dcat [ -n ] [ -F ] [ -g key-field-list ] [ -k key-flags ] [ input-file.. ]

DESCRIPTION

Dcat reads D-records from each input-file in sequence and writes them on the standard output. Major difference from cat (of UNIX) is that Dcat treats the end-of-file as a D-record delimiter, while cat does not.

When -n option is specified, Dcat adds "seq" field of which value is record number throughout the output file, starting from 1. This numbering is changed to the numbering within each input file by -F option, or to the numbering within each group of same key value records by -g option.

Dcat adds "filename" field of which value is the input file name to each output record, when -F option is specified.

OPTIONS

-F
adds "filename" field to each output record; value is the input file name in the form of the command arguments after globbed by the shell. This field is not added when the input file is the standard input. When -n option is specified at the same time, record numbering is reset to 1 at the top reord of each input file.
-g key-field-list
group by key-field-list; used with -n, record numbering is reset to 1 when the key value of the record is different from the key value of the previous record. The input file is usually (but not necessarily) sorted by the key value. This option has effect only when used with -n option.
-k key-flags
default key-flags for the key-field-list. See the manual of Dintro.
-n
numbering; "seq" field of which value is the record number is added at the very top of each output record.
-D [i/o]datautf=8|16|32
UTF I/O feature (see manual page of UTF I/O feature.)

FIXED NAME FIELDS

seq:
at the top of each record, when -n options is specified.
filename:
at the next of the "seq" field (if -n option is in effect), and before all other fields.

ENVIRONMENT

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

DIAGNOSTICS

See the manual of D_msg.

SEE ALSO

Dintro, D_msg.

AUTHOR

MIYAZAWA Akira


miyazawa@nii.ac.jp
2003