Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

from ssv for formats

Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2.

Signature

> from ssv {flags}

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 types:

inputoutput
stringtable

Examples

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 --noheaders
╭───┬─────────┬─────────╮
│ # │ column0 │ column1 │
├───┼─────────┼─────────┤
│ 0 │ FOO     │ BAR     │
│ 1 │ 1       │ 2       │
╰───┴─────────┴─────────╯