mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
29 lines
429 B
Markdown
29 lines
429 B
Markdown
---
|
|
title: columns
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Show the columns in the input.
|
|
|
|
## Signature
|
|
|
|
```> columns ```
|
|
|
|
## Examples
|
|
|
|
Get the columns from the table
|
|
```shell
|
|
> [[name,age,grade]; [bill,20,a]] | columns
|
|
```
|
|
|
|
Get the first column from the table
|
|
```shell
|
|
> [[name,age,grade]; [bill,20,a]] | columns | first
|
|
```
|
|
|
|
Get the second column from the table
|
|
```shell
|
|
> [[name,age,grade]; [bill,20,a]] | columns | select 1
|
|
```
|