W3cubDocs

/Nushell

echo for core

Returns its arguments, ignoring the piped-in value.

Signature

> echo {flags} ...rest

Parameters

  • ...rest: the values to echo

Input/output types:

input output
nothing any

Examples

Put a list of numbers in the pipeline. This is the same as [1 2 3].

>echo123
╭───┬───╮
01
12
23
╰───┴───╯

Returns the piped-in value, by using the special $in variable to obtain it.

>echo$in

Notes

When given no arguments, it returns an empty string. When given one argument, it returns it. Otherwise, it returns a list of the arguments. There is usually little reason to use this over just writing the values as-is.

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/echo.html