Returns the value of an environment variable. The -x flag can be used to test if a named variable exists.
If used without arguments this command will return all variables and their values. In this use case the substr argument can be used to filter for certain variable names (case sensitive).