to tsv
For formats.
Convert table into .tsv text.
Command Type
built-in
Signature
> to tsv {flags}
Flags
--noheaders, -n: Do not output the column names as the first row.--columns {list<string>}: The names (in order) of the columns to use.
Input/output types:
| input | output |
|---|---|
| record | string |
| table | string |
Examples
Outputs a TSV string representing the contents of this table.
> [[foo bar]; [1 2]] | to tsv
foobar
12
Outputs a TSV string representing the contents of this record.
> {a: 1 b: 2} | to tsv
ab
12
Outputs a TSV stream with column names pre-determined.
> [[foo bar baz]; [1 2 3]] | to tsv --columns [baz foo]
bazfoo
31
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.