getkey - get a look-up table entry
SYNOPSIS
DESCRIPTION
getkey
looks for
key
in
look-up_table.
If it finds the key it prints the associated decode
column (if any) on the standard output.
The exit status of
getkey
is used to indicate
the number of keys found in
look-up_table
and
not
the success or failure of the command.
EXAMPLES
To look up WA in the
States
look-up table:
$ getkey States WA
Washington$ echo $?
1
SEE ALSO