Wiki source for CommandEcho


Show raw source

======Command echo======

====Name====

**echo** Prints its arguments to stdout

====Synopsis====
**echo** [ [[SerializationOptions serialization options]] ] [options] [args]

===Options===
||-n||No newline||
||-p,-port port||Outputs to a named port instead of out||

Prints its arguments to the standard output seperated by a space.
If no arguments are given then a single blank line ("\n") is printed.
If arguments are XML expressions then they are written in normal text serialized format.
XML Sequences are output seperated by spaces.
A newline is printed at the end of all arguments.
If the first argument is "-n" then no newline is printed.


====Examples====
Example
%%
echo hi there
%%
Result
%%
hi there
%%
Example
%%
echo arg1 <[1,"hi",<foo>bar</foo>]> arg3
%%
Result
%%
arg1 1 hi <foo>bar</foo> arg3
%%
Example
%%
echo -n foo ; echo bar
%%
Result
%%
foobar
%%

Example: write to the error port
%%
echo -p error A line written to the error port
%%

----
[[Commands]]
[[CategoryCommands]]
See Also [[CommandXEcho xecho]]


Valid XHTML :: Valid CSS: :: Powered by WikkaWiki