str title-case for strings> str title-case {flags} ...rest
...rest: For a data structure input, convert strings at the given cell paths| input | output |
|---|---|
| list<string> | list<string> |
| record | record |
| string | string |
| table | table |
convert a string to Title Case
>'nu-shell'|str title-case
NuShell
convert a string to Title Case
>'this is a test case'|str title-case
ThisIsATestCase
convert a column from a table to Title Case
> [[title, count]; ['nu test', 100]] |str title-casetitle
╭───┬─────────┬───────╮
│# │ title │ count │
├───┼─────────┼───────┤
│0│NuTest│100│
╰───┴─────────┴───────╯
Tips: Command str title-case was not included in the official binaries by default, you have to build it with --features=extra flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/str_title-case.html