Prev | Current Page 666 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


10.5.1.12 -t
Specify an alternative to whitespace for a delimiter makemap command-line switch
Normally, makemap expects the key and data portions of its input file to be separated from
each other by linear whitespace (space and tab characters). The following is an example of
such an input file:
key data
?†“ ?†“
lady relaysite!lady
?†‘
whitespace
Beginning withV8.12 sendmail, an alternative to whitespace can be specified on the
command line. Consider, for example, an input file (named infile) that is delimited with
commas:
key,data
To read such an input file with makemap you would run something like the following:
% makemap -t, hash outfile < infile
The delimiting character that follows the -t must be just a single character. If a multicharacter
delimiting character is specified, all but the first character will be silently ignored. If
the delimiting character has special meaning to the shell (as does a semicolon), be sure to
quote or escape it:
-t\; ?†? escaped with a backslash
-t ';' ?†? quoted
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
376 | Chapter 10: Build and Use Companion Programs
10.5.1.13 -u
Unmake (dump) the contents of a database makemap command-line switch
The -u switchcauses makemap to dump the contents (key and data pairs) of an existing
database.


Pages:
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
Jaki wybrać olej dieta light typy bukmacherskie Connie Talbot śmieszne dowcipy