__ECHO____________________________CXR__________________________________

NAME

	echo – displays the arguments given

SYNOPSIS

	echo [-n] [arguments]

DESCRIPTION

Echo displays the arguments given, separated by spaces and ends the line
with RC NL.
If the -n option is present, the RC NL characters are not added at the end
of the message.
If an argument is preceded by the $ character, and not enclosed by the
''' character, the argument will be converted in accordance with the variables defined; if
no variables correspond to the parameter given, nothing will be displayed.
Note, the '\' character has a special meaning; it indicates
that the character that follows must be interpreted in a specific way, as
defined below.

	\a	BEL	BELl		Bell
	\b	BS	Back Space	1 character backspace
	\f	FF	Form Feed	Passage to the next page
	\n	LF	Line Feed	Passage to the next line
	\q	QM	Question Mark	Question mark
	\r	CR	Carriage Return	Carriage return
	\t	TAB	TABulate	Horizontal tabulation
	\v	VT	Vertical Tab	Vertical tabulation
	\0	NU	NUll		End of string (special use)
	\\				\ itself

Note, the '^' character has a special meaning; it indicates
that in the character that follows, you must only consider the 5 bits on the left.
This syntax is generally used to represent
control characters. To display the '^' character, you will use the sequence "\^".

The '?' character is not ordinarily considered as a special character,
however it is used to display the help menu in the editor.
You cannot therefore use it directly.

EXAMPLES

To display the value SERVER variable, proceed as follows:
echo $SERVER
To display the string "bob is nice":
echo bob is nice
To display the string "$TOTO" with no line termination:
echo -n '$TOTO'
To display the string "toto" above the string "titi":
echo 'toto\ntiti'
To display the string "who is it":
echo 'who is it\q'

 __________________________________CXR____________________________rev-__
[Back to index]