|-a||Selects an alternative output format. The Alias information is displayed in addition to and preceding the usual Address information.|
|-d||Turns debugging on. Has no effect unless elmalias was compiled with debugging enabled.|
|-e||Tells elmalias to fully expand group aliases. This option can be used only when names are given on the command line.|
|-f||The output produced will be in the specified format. Format specifications will be discussed shortly.|
|-n||Selects an alternative output format. The Name information, if it exists, is displayed in addition to and following the usual Address information. The Name will be enclosed in parenthesis.|
|-r||If a specified name does not correspond to a known alias then elmalias will display a message and exit with a nonzero status.|
|-s||Normally elmalias examines both the user-specific and system-wide alias files. This option requests that elmalias use the system-wide alias file, and unless the -u option is also specified the user-specific alias file will be ignored.|
|-u||Normally elmalias examines both the user-specific and system-wide alias files. This option requests that elmalias use the user-specific alias file, and unless the -s option is also specified the system-wide alias file will be ignored.|
|-v||Selects a verbose output format. Both the Alias and the Name information will be displayed in addition to the Address information. The Alias information will precede the Address information, and the Name information will be enclosed in parenthesis and follow it. If there is no Name information for this alias then that portion of the output will be ignored.|
|-V||Selects a very verbose, multi-line output format. Displays all available information on aliases.|
The output produced by
elmalias is fully customizable with the
-f option. The
format string uses a syntax similar to
date(1) (System V version) and
The following field descriptors may be used in
Field widths in a [-][m][.n] format (again, similar to printf(3) ) may also be used. For example, "%-20.20a" means print the Alias information left justified in a field twenty characters long, with the value truncated to twenty characters.
The following special character sequences are also recognized in
There is a very simplistic conditional evaluation mechanism that may be used in format specifications. The conditional text should be surrounded by question marks, and a single character that specifies the condition immediately follows the first question mark. The condition characters correspond to the % field specifier characters, and the condition is true if the corresponding alias information is defined and nonempty. For example, if you want to display the Name information surrounded by parenthesis, but omit it if the information is not available, you may use ?n(%n)? in the format specification.
The command line switches that select an alternative format correspond
to the following format specifiers.
|The prlong utility formats long amounts of data, folding across multiple lines. It is useful to reformat output of elmalias. Prlong reads data from its standard input, one line at a time, and tries to place as much information as possible on each output line. A field seperator, by default a single space, seperates each input record in the output lines. Every output line is preceded by a leader field. By default the leader of the first output line is an empty string, and the leader for all subsequent output lines is a single tab. prlong will never split an input record. If an input record exceeds the maximum output line length, it will appear unmodified on an output line all by itself.|
|The following options may be used to modify the prlong behavior.|
|-w width||Constrains output lines to width columns in length (not counting an appended newline character). The default is 78 columns. The width calculation assumes that tabstops occur every eight spaces.|
|-f string||Seperates each input record with the indicated string when displayed to the output. The default is a single space.|
|-1 string||Specifies the leader string used for the first line of output. (This option is the digit one.) The default is an empty string.|
|-l string||Specifies the leader string for all subsequent lines of output. (This option is a lower-case ell.) The default is a single tab.|
Consider an aliases.text file that contains:Below are shown some example commands and the output produced.
friends = List of Friends = tom, dick, harry tom = Tom Smith = sleepy!tom dick = Dick Jones = dopey!dick harry = = grumpy!harry
$ elmalias friends tom,dick,harry
$ elmalias mike mike
$ elmalias -r mike elmalias: "mike" is not a known alias
$ elmalias -n friends tom,dick,harry (List of Friends)
$ elmalias -a friends friends tom,dick,harry
$ elmalias -V friends Alias: friends Address: tom,dick,harry Type: Group Name: List of Friends Last Name: List of Friends
Elm Development Group
There is no centralized, comprehensive interface to the Elm 2.4 alias system, so every program in the Elm suite that uses aliases implements its own interfaces. Its possible for inconsistencies to creep in between what elmalias says and what some Elm utility does. If you find an inconsistency please report it to us!
Boy, there sure are a lot of command line switches in this thing.
Note that the precedence of aliases is user file then system file. This means that a user can overload an alias by having one defined in the system file also defined in theirs. This shouldnt turn out to be a problem, but is something for the system administrator to keep in mind when creating the system alias file.
Bill Pemberton email@example.com
\(coCopyright 1993-1995 by The USENET Community Trust
|USENET Community Trust||ELMALIAS (1L)||Elm Version 2.5|