listalias(1) CLIX listalias(1)
NAME
listalias - Lists Elm user and system aliases
SYNOPSIS
listalias [regular_expression]
DESCRIPTION
The listalias command displays an alias, its associated address, and any
comments pertaining to that alias which appear in the user and the system
aliases file. Each line has the following form:
alias address (comment)
If an optional regular expression is supplied, only the aliases that match
the specified expression are listed. If no regular expression is used,
all aliases are listed. The output is sorted alphabetically.
EXAMPLES
To see which aliases contain the machine name of abcompany, enter the
following command:
listalias abcompany
The command will search the user and system database. If any aliases have
abcompany in the address, the aliases will be listed on the screen in
alphabetical order.
FILES
$HOME/.elm/aliases.text User alias file.
/usr/lib/elm/aliases.text System alias file.
NOTES
Expression evaluation is a function of egrep, rather than of listalias.
DIAGNOSTICS
If egrep is not found, the error message Cannot open pipe to egrep program
for expressions! appears.
If the data file used for alias information cannot be found or opened,
this message displays: Opened {system | user} hash file, but couldn't
open data file!.
EXIT VALUES
2/94 - Intergraph Corporation 1
listalias(1) CLIX listalias(1)
The command exits with a value of 0 if successful. If unsuccessful, the
command exits with a value of 1.
RELATED INFORMATION
Commands: newalias(1), elm(1), checkalias(1), grep(1)
The Elm User's and Reference Guides
2 Intergraph Corporation - 2/94