to text for formats
Converts data into simple text.
Signature
> to text {flags} 
Flags
- --no-newline, -n: Do not append a newline to the end of the text
- --serialize, -s: serialize nushell types that cannot be deserialized
Input/output types:
| input | output | 
|---|---|
| any | string | 
Examples
Outputs data as simple text with a trailing newline
> [1] | to text
1Outputs data as simple text without a trailing newline
> [1] | to text --no-newline
1Outputs external data as simple text
> git help -a | lines | find -r '^ ' | to textOutputs records as simple text
> ls | to text