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