Prev | Current Page 1561 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

A
text-type file??”for example, /etc/hosts??”might display the key on the right and the value on
the left:
123.45.67.89 here.our.domain
For suchcircumstances, the -v switchcan be used withth e K command to specify the
column or item that will be returned as the value when a key is matched. For example:
Kaddr text -k1 -v0 /etc/hosts
For nisplus, netinfo, user, and other such database maps, the -v switchspecifies the name
(text) of the value??™s column.
This -v switch specifies which column is the value to return. If it is omitted, it defaults to 0
for the text type (which is indexed beginning with 0) to the last named column for the
nisplus type, and to the string ???members??? for the netinfo type. Note that the -v switchh as a
different meaning for the ph database-map type. See also -k (?§23.3.5 on page 888) for the
value??™s column and -z (?§23.3.16 on page 891) for the column delimiter.
23.3.16 -z
Specify the column delimiter V8.7 and later
Flat, sequential text files have columns of information delimited from each other with a
variety of characters:
123.45.67.89 here.our.domain ?†? /etc/hosts uses a whitespace
nobody:*:65534:65534::/: ?†? /etc/passwd uses a colon
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
892 | Chapter 23: The K (Database-Map) Configuration Command
The -z switch can be used to specify a delimiter whenever the default delimiter of
whitespace is not appropriate.


Pages:
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573
Gabi meble Warszawa Romantyczny weekend Wczasy nad morzem nobel calling cards wyciągarki