str title-case for strings
Convert a string to Title Case.
Signature
> str title-case {flags} ...rest
Parameters
-
...rest: For a data structure input, convert strings at the given cell paths
Input/output types:
| input | output |
|---|---|
| list<string> | list<string> |
| record | record |
| string | string |
| table | table |
Examples
convert a string to Title Case
> 'rsh-shell' | str title-case
Rsh Shell
convert a string to Title Case
> 'this is a test case' | str title-case
This Is A Test Case
convert a column from a table to Title Case
> [[title, count]; ['rsh test', 100]] | str title-case title
╭───┬─────────┬───────╮
│ # │ title │ count │
├───┼─────────┼───────┤
│ 0 │ Rsh Test │ 100 │
╰───┴─────────┴───────╯
Tips: Command str title-case was
not included in the official binaries by default, you have to
build it with --features=extra flag