mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 15:39:06 +01:00
510 B
510 B
title | layout | version |
---|---|---|
rename | command | 0.59.1 |
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]