When the -k switchspecifies whichcolumn contains the key, its absence defaults to 0 for
the text type (which is indexed beginning with 0) and defaults to the name of the first
column for the nisplus type. See also -v (?§23.3.15 on page 891) for the returned value??™s
column, and -z (?§23.3.16 on page 891) for the column delimiter.
Finally, note that for ldap database maps, the -k switch has a different meaning, one that is
particular to that type.
23.3.6 -l (lowercase L)
Set a timeout for the lookup V8.12 and later
When doing a lookup, the -l switch sets a time limit for how long to wait for a reply:
-l5
Note that the limit is not a general time expression (that is, 15m still evaluates to 15
seconds).
Also note that this -l switchis not available for all database-map types. As of this writing,
it is available only with the ldap and ph database-map types.
23.3.7 -m
Suppress replacement on match V8.1 and later
Ordinarily, a successful lookup in a database map causes the key to be replaced by its
value. When the intention is to merely verify that the key exists (not to replace it) the -m
switch can be used to suppress replacement.
For example, the values that are returned from the hosts.byname NIS database map are not
generally useful (they contain multiple hostnames). In looking up a key in this database
map (with $( and $); see ?§23.
Pages:
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567