Dextract [ -Fv ] record-number-list [ input-file.. ]
Dextract selects records by the record-number-list, that is a comma separated list of record numbers or hyphened pair of record numbers. The latter form (n-m) means all record numbers r that is n<=r<=m. Therefore, m must be greater than or equal to n. In this form, n or m may be omitted. They are interpreted as "from the first record", or "to the last record".
Duplicate record number may be in the list. Record numbers need not be in ascending order. Union of all the record numbers in the list is in effect.
Record number of the input record starts from 1, and increase throughout the whole input files. But, when -F option is specified, record number is reset to 1 at the first record of each input file.
Following commands are almost self-explaining:
Dextract 30
Dextract 1-10
Dextract -10
Dextract 11-
Dextract 2,5,8,11
Dextract 11-13,6-8,3,1
Dextract -F 1-10 *.d
Dextract -v 2,5,8
See the manual of D_msg.
MIYAZAWA Akira