Home Explore Blog CI



nushell

commands/docs/from_ssv.md
7ca58d1ef0b0f437de359e72e715b316d016a8cd346c03970000000300000714
---
title: from ssv
categories: |
  formats
version: 0.104.0
formats: |
  Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2.
usage: |
  Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `from ssv` for [formats](/commands/categories/formats.md)

<div class='command-title'>Parse text as space-separated values and create a table. The default minimum number of spaces counted as a separator is 2.</div>

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

| input  | output |
| ------ | ------ |
| string | table  |
## Examples

Converts ssv formatted string to table
```nu
> '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
```nu
> 'FOO   BAR
1   2' | from ssv --noheaders
╭───┬─────────┬─────────╮
│ # │ column0 │ column1 │
├───┼─────────┼─────────┤
│ 0 │ FOO     │ BAR     │
│ 1 │ 1       │ 2       │
╰───┴─────────┴─────────╯

```

Chunks
7aa4862c (1st chunk of `commands/docs/from_ssv.md`)
Title: from ssv: Parse Space-Separated Values into a Table
Summary
The `from ssv` command parses text formatted as space-separated values into a Nu table. By default, it treats the first row as column headers and requires at least two spaces to separate columns. Flags allow disabling header interpretation, assuming aligned columns, and adjusting the minimum number of spaces for separation.