mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
33 lines
510 B
Markdown
33 lines
510 B
Markdown
---
|
|
title: rename
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Creates a new table with columns renamed.
|
|
|
|
## Signature
|
|
|
|
```> rename ...rest --column```
|
|
|
|
## Parameters
|
|
|
|
- `...rest`: the new names for the columns
|
|
- `--column {list<string>}`: column name to be changed
|
|
|
|
## Examples
|
|
|
|
Rename a column
|
|
```shell
|
|
> [[a, b]; [1, 2]] | rename my_column
|
|
```
|
|
|
|
Rename many columns
|
|
```shell
|
|
> [[a, b, c]; [1, 2, 3]] | rename eggs ham bacon
|
|
```
|
|
|
|
Rename a specific column
|
|
```shell
|
|
> [[a, b, c]; [1, 2, 3]] | rename -c [a ham]
|
|
```
|