nushell/docs/commands/headers.md

25 lines
378 B
Markdown
Raw Normal View History

---
title: headers
layout: command
version: 0.59.0
---
2020-05-13 10:03:29 +02:00
Use the first row of the table as column names.
2020-05-13 10:03:29 +02:00
## Signature
```> headers ```
2020-05-13 10:03:29 +02:00
## Examples
Returns headers from table
2020-05-13 10:03:29 +02:00
```shell
> "a b c|1 2 3" | split row "|" | split column " " | headers
```
2020-05-13 10:03:29 +02:00
Don't panic on rows with different headers
```shell
> "a b c|1 2 3|1 2 3 4" | split row "|" | split column " " | headers
2020-05-13 10:03:29 +02:00
```