mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
33 lines
438 B
Markdown
33 lines
438 B
Markdown
|
---
|
||
|
title: str capitalize
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
capitalizes text
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> str capitalize ...rest```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `...rest`: optionally capitalize text by column paths
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Capitalize contents
|
||
|
```shell
|
||
|
> 'good day' | str capitalize
|
||
|
```
|
||
|
|
||
|
Capitalize contents
|
||
|
```shell
|
||
|
> 'anton' | str capitalize
|
||
|
```
|
||
|
|
||
|
Capitalize a column in a table
|
||
|
```shell
|
||
|
> [[lang, gems]; [nu_test, 100]] | str capitalize lang
|
||
|
```
|