2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: from ssv
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
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 --noheaders --aligned-columns --minimum-spaces```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `--noheaders`: don't treat the first row as column names
|
|
|
|
- `--aligned-columns`: assume columns are aligned
|
|
|
|
- `--minimum-spaces {int}`: the minimum spaces to separate columns
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Converts ssv formatted string to table
|
|
|
|
```shell
|
|
|
|
> 'FOO BAR
|
|
|
|
1 2' | from ssv
|
|
|
|
```
|
|
|
|
|
|
|
|
Converts ssv formatted string to table but not treating the first row as column names
|
|
|
|
```shell
|
|
|
|
> 'FOO BAR
|
|
|
|
1 2' | from ssv -n
|
|
|
|
```
|