echo Command
From Wiki077
(Redirected from Echo)
echo [-n] [-r] text
Prints text to the textport. The output will be terminated with a new line unless the -n option is used. Output can be redirected to a DAT using > or appended to a DAT using >>. A "FILE:" prefix can be used to explicitly denote a disk path.
See Redirecting in Tscript to route the text to DATs and files.
Options
-r |
will output alternate end-of-line characters for dos/unix conversion. |
Examples
Output to textport:
touch -> set foo1 = bob > echo $foo1 bob
Redirect to DAT called text1:
echo "abc" > text1
Append to a DAT called text1:
echo "abc" > text1
Redirect to the external file C:/abc.txt:
echo "hello world" > FILE:C:/abc.txt
