from ssv for formats> from ssv {flags}
--noheaders, -n: don't treat the first row as column names--aligned-columns, -a: assume columns are aligned--minimum-spaces, -m {int}: the minimum spaces to separate columns| input | output |
|---|---|
| string | table |
Converts ssv formatted string to table
>'FOO BAR
1 2'|from ssv
╭───┬─────┬─────╮
│# │ FOO │ BAR │
├───┼─────┼─────┤
│0│1│2│
╰───┴─────┴─────╯
Converts ssv formatted string to table but not treating the first row as column names
>'FOO BAR
1 2'|from ssv-n
╭───┬─────────┬─────────╮
│# │ column1 │ column2 │
├───┼─────────┼─────────┤
│0│FOO│BAR│
│1│1│2│
╰───┴─────────┴─────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/from_ssv.html