Difference between revisions of "Dilib command, DamHfdSelect"
From Wicri Tools
imported>Jacques Ducloy |
imported>Jacques Ducloy m (8 revisions imported) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
==DESCRIPTION== | ==DESCRIPTION== | ||
DamHfdSelect gets a list of hfd record key_numbers by option analysis or on standard input and prints corresponding records. On standard input, keys may be separated by spaces, tabs, newline, colon, semicolon, slash. | DamHfdSelect gets a list of hfd record key_numbers by option analysis or on standard input and prints corresponding records. On standard input, keys may be separated by spaces, tabs, newline, colon, semicolon, slash. | ||
| + | ==OPTIONS== | ||
| + | <pre> | ||
| + | -hhfd defines hfd file from which records are selected. Only radical (without suffix) must be given. | ||
| + | |||
| + | -i insert mode, if set the input stream is composed of an extracting key followed by a tabulation | ||
| + | mark and the end of record which will be copied. | ||
| + | |||
| + | -K if set, record key will be copied on standard output. | ||
| + | |||
| + | -krecordKey introduces the a for extracting a record and printing it. | ||
| + | |||
| + | -lkeyList list of keys to be extracted. Authorized separators are the same than for standard input. | ||
| + | |||
| + | -n If set, no read operation will be done on stdin. (in this case, DamHfdSelect is only driven by | ||
| + | parameters) | ||
| + | </pre> | ||
| + | ==EXAMPLE== | ||
| + | ''Reading record key <code>012314</code> on hfd <code>mybase.hfd</code>: | ||
| + | <source lang="sh"> | ||
| + | DamHfdSelect -n -h mybase -k 012314 | ||
| + | </source> | ||
Latest revision as of 22:36, 14 June 2017
Contents
NAME
DamHfdSelect - Select records from Hfd structure.
SYNOPSIS
DamHfdSelect [ -Kn ] -h hfd [ -k recordKey ] [ -l keyList ]
DESCRIPTION
DamHfdSelect gets a list of hfd record key_numbers by option analysis or on standard input and prints corresponding records. On standard input, keys may be separated by spaces, tabs, newline, colon, semicolon, slash.
OPTIONS
-hhfd defines hfd file from which records are selected. Only radical (without suffix) must be given.
-i insert mode, if set the input stream is composed of an extracting key followed by a tabulation
mark and the end of record which will be copied.
-K if set, record key will be copied on standard output.
-krecordKey introduces the a for extracting a record and printing it.
-lkeyList list of keys to be extracted. Authorized separators are the same than for standard input.
-n If set, no read operation will be done on stdin. (in this case, DamHfdSelect is only driven by
parameters)
EXAMPLE
Reading record key 012314 on hfd mybase.hfd:
DamHfdSelect -n -h mybase -k 012314