Output String (out)
Less than 1 minuteBuiltin CommandsInput / Output StreamsDefined by POSIX
out
)
Output String (Print a string to the stdout with a trailing new line character
Description
Write parameters to stdout with a trailing new line character.
Usage
out string to write -> <stdout>
Examples
out
» out Hello, World!
Hello, World!
echo
For compatibility with other shells (and POSIX), echo
is also supported:
» echo Hello, World!
Hello, World!
Detail
out
/ echo
output as string
data-type. This can be changed by casting (cast
) or using the tout
function.
ANSI Constants
out
supports ANSI constants.
Synonyms
out
echo
See Also
- ANSI Constants: Infixed constants that return ANSI escape sequences
- Define Type (
cast
): Alters the data-type of the previous function without altering its output - Error String (
err
): Print a line to the stderr - Get Pipe Status (
pt
): Pipe telemetry. Writes data-types and bytes written - Output With Type Annotation (
tout
): Print a string to the stdout and set it's data-type - Read User Input (
read
):read
a line of input from the user and store as a variable - Read With Type (
tread
) (removed 7.x):read
a line of input from the user and store as a user defined typed variable (deprecated) - Truncate File (
>
): Writes stdin to disk - overwriting contents if file already exists (brace quote)
: Write a string to the stdout without new line (deprecated)>>
Append File: Writes stdin to disk - appending contents if file already exists
This document was generated from builtins/core/io/echo_doc.yaml.