getenv

Gets an environment variable.

Format

getenv <envname> <strvar>

Remarks

Retrieves the value of an environment variable specified by <envname> and stores it in the string variable <strvar>.

Example

getenv 'TEMP' env