-
Notifications
You must be signed in to change notification settings - Fork 16
echo
Scott C Gray edited this page Feb 26, 2017
·
3 revisions
\echo [-n] [string] [...]
Echos the string(s) to standard out.
Disables the output of a newline character at the end of the output. For example, given a script containing:
\echo -n hel
\echo lo
the final output would be:
hello
Display a static string:
1> \echo "Hello world!"
Hello world!
Display text with a variable
1> \set x=10
1> \echo "Value of x is $x"
Value of x is 10