mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 01:19:25 +01:00
40 lines
713 B
Markdown
40 lines
713 B
Markdown
|
---
|
||
|
title: from csv
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
Parse text as .csv and create table.
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> from csv --separator --noheaders```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `--separator {string}`: a character to separate columns, defaults to ','
|
||
|
- `--noheaders`: don't treat the first row as column names
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Convert comma-separated data to a table
|
||
|
```shell
|
||
|
> open data.txt | from csv
|
||
|
```
|
||
|
|
||
|
Convert comma-separated data to a table, ignoring headers
|
||
|
```shell
|
||
|
> open data.txt | from csv --noheaders
|
||
|
```
|
||
|
|
||
|
Convert comma-separated data to a table, ignoring headers
|
||
|
```shell
|
||
|
> open data.txt | from csv -n
|
||
|
```
|
||
|
|
||
|
Convert semicolon-separated data to a table
|
||
|
```shell
|
||
|
> open data.txt | from csv --separator ';'
|
||
|
```
|
||
|
|