Display a line of text.
Synopsis
echo [OPTION]... [STRING]...
Description
Echo the STRING(s) to standard output. Runs in the just-bash WASM shell inside SLICC.
Options
-n Do not output the trailing newline.
-e Enable interpretation of backslash escapes.
Escape Sequences (with -e)
\n New line.
\t Horizontal tab.
\\ Backslash.
Examples
$ echo "Hello, World!"
Print a greeting.
$ echo -n "no newline"
Print without a trailing newline.
$ echo -e "line1\nline2"
Print two lines using escape sequence.
Notes
In SLICC's shell, echo is a built-in command of the just-bash interpreter.
See Also
printf, cat