mirror of
https://github.com/nushell/nushell
synced 2024-11-11 07:34:14 +00:00
doc: add rename command page (#1781)
This commit is contained in:
parent
e7f08cb21d
commit
f78536333a
1 changed files with 17 additions and 0 deletions
17
docs/commands/rename.md
Normal file
17
docs/commands/rename.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# rename
|
||||
|
||||
Use `rename` to give columns more appropriate names.
|
||||
|
||||
## Examples
|
||||
|
||||
```shell
|
||||
> open /etc/passwd | lines | split-column ":" | rename user password uid gid gecos home shell
|
||||
────┬────────┬──────────┬──────┬──────┬────────┬─────────────────┬──────────────────
|
||||
# │ user │ password │ uid │ gid │ gecos │ home │ shell
|
||||
────┼────────┼──────────┼──────┼──────┼────────┼─────────────────┼──────────────────
|
||||
0 │ root │ x │ 0 │ 0 │ root │ /root │ /bin/bash
|
||||
1 │ bin │ x │ 1 │ 1 │ bin │ /bin │ /usr/bin/nologin
|
||||
2 │ daemon │ x │ 2 │ 2 │ daemon │ / │ /usr/bin/nologin
|
||||
3 │ mail │ x │ 8 │ 12 │ mail │ /var/spool/mail │ /usr/bin/nologin
|
||||
────┴────────┴──────────┴──────┴──────┴────────┴─────────────────┴──────────────────
|
||||
```
|
Loading…
Reference in a new issue