mirror of
https://github.com/nushell/nushell
synced 2024-12-31 23:39:00 +00:00
8c0a2d3c15
* Finish updating * a couple improvements * Update renames * cleanup examples
24 lines
378 B
Markdown
24 lines
378 B
Markdown
---
|
|
title: headers
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Use the first row of the table as column names.
|
|
|
|
## Signature
|
|
|
|
```> headers ```
|
|
|
|
## Examples
|
|
|
|
Returns headers from table
|
|
```shell
|
|
> "a b c|1 2 3" | split row "|" | split column " " | headers
|
|
```
|
|
|
|
Don't panic on rows with different headers
|
|
```shell
|
|
> "a b c|1 2 3|1 2 3 4" | split row "|" | split column " " | headers
|
|
```
|
|
|