ECHO(1) General Commands Manual ECHO(1)

echowrite arguments to standard output

echo [-n] [string...]

echo buffers all string together with a final newline and then does a single write to standard output. If there is no string, only the newline is written.

The -- operand, which generally terminates option processing, is treated as part of string.

Do not print the trailing newline character.

The echo utility exits 0 on success, and >0 if an error occurs.

printf(1)

Not XSI-compliant as -n is parsed as an option and backslash operators aren't supported. Should be compliant with the rest of the IEEE Std 1003.1-2024 (“POSIX.1”) specification.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2024-03-18 Linux 6.6.67-gentoo-x86_64