nushell/docs/commands/rename.md
JT 8c0a2d3c15
Auto-generate markdown command docs (#4451)
* Finish updating

* a couple improvements

* Update renames

* cleanup examples
2022-02-13 21:22:51 -05:00

511 B

title layout version
rename command 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

> [[a, b]; [1, 2]] | rename my_column

Rename many columns

> [[a, b, c]; [1, 2, 3]] | rename eggs ham bacon

Rename a specific column

> [[a, b, c]; [1, 2, 3]] | rename -c [a ham]