This topic describes the echo command in gfsh, the VMware Tanzu GemFire command-line interface.

Use this command to echo the specified text. This text may include system and user variables.

The command can also echo gfsh environment properties (using ‘set variable’ command) if the variable name is pre-pended with ‘$’.

For a list of gfsh environment variables, see Useful gfsh Shell Variables.

Availability: Online or offline.

Syntax:

echo [--string=value]

Name Description
‑‑string String to be echoed. For example, SYS_USER variable is set to ${SYS_USER}.

Table 1. Echo Parameters

Example Commands:

echo --string="Hello World!"
echo --string="Hello World! This is ${SYS_USER}"
echo --string=${APP_FETCH_SIZE}

To see all the variable set in the shell:

echo --string=$*

Sample Output:

gfsh>echo --string=${SYS_JAVA_VERSION}
Post substitution: echo --string=1.8.0_60
1.8.0_60
check-circle-line exclamation-circle-line close-line
Scroll to top icon