echo 3plumb 2012-09-04

NAME

echo - print a string or binary data and send an eof

SYNPOSIS

[echo text=STRING]

[echo bin=BINARY]

[echo STRING]

+------+
| echo |----> (stdout) 1
+------+

DESCRIPTION

After started, echo prints a predefined text or binary data on stdout and exits (causing eof on stdout). The only difference between printing text and binary is that in text mode a newline is appended.

eof handling

Default.

blocking/flow control

Default.

buffering

None.

EXAMPLE

include stdio

# print hello world, with newline appended
[echo "hello world"] | STDOUT:*

# print hello as is and compress it
[echo bin="hello"] | {gzip} | [open hello.gz]

SEE ALSO

echo 3plumb 2012-09-04