Dhead - Selection of the top n records

[ English | Japanese ]

[visit D-home]

SYNOPSIS

Dhead [ -number-of-records ] [ input-file.. ]

DESCRIPTION

Dhead selects the top number-of-records records from each input-file. If an input file has less than the -number-of-records records, all the records of that file are selected. (It does not affect to the next input file).

When there are more than one input-files, "filename:" field is added to each output record unless the input file is not standard input.

When the number-of-records parameter is not given, 1 is assumed.

OPTIONS

-D [i/o]datautf=8|16|32
UTF I/O feature (see manual page of UTF I/O feature.)

FIXED NAME FIELDS

filename:
at the top of each record, when there are more than one input-files.

ENVIRONMENT

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

DIAGNOSTICS

See the manual of D_msg.

SEE ALSO

Dintro, Dextract, D_msg.

AUTHOR

MIYAZAWA Akira


miyazawa@nii.ac.jp
2003