NAME
env_val - print value of named environment variable.
SYNOPSIS
env_val [ -dh ] prefix suffix
DESCRIPTION
Env_val takes an environment variable in two distinct pieces
(prefix and suffix), concatenates the two together to form
one name, and outputs the value corresponding to the con-
catenated name, if found. Env_val is intended for use from
within the shadow scripts. It was not designed to be used
interactively.
Options
The following options are available:
-d Debug mode. Causes the program to issue a formatted
write to stderr.
-h program prints usage message.
EXAMPLES
env_val DEPT ROOT
env_val AR CH
The former example checks the environment variable DEPTROOT
and outputs its value, or the error message "env_val: No
environment variable DEPTROOT", if DEPTROOT has not been
set. The latter checks ARCH (the host architecture variable)
and returns the host architecture type.
SEE ALSO
shadow(1)
AUTHOR
Terri L. Fischer
Tulsa Research Center, Amoco Production
BUGS
In some instances, an environment variable that is typed in
the wrong case will return null, instead of a non-exsistent
variable message.
COPYRIGHT
copyright 2001, Amoco Production Company
All Rights Reserved
an affiliate of BP America Inc.
Man(1) output converted with
man2html