str capitalize
for strings> str capitalize {flags} ...rest
...rest
: For a data structure input, convert strings at the given cell pathsinput | output |
---|---|
list<string> | list<string> |
record | record |
string | string |
table | table |
Capitalize contents
>'good day'|str capitalize
Goodday
Capitalize contents
>'anton'|str capitalize
Anton
Capitalize a column in a table
> [[lang, gems]; [nu_test, 100]] |str capitalizelang
╭───┬─────────┬──────╮
│# │ lang │ gems │
├───┼─────────┼──────┤
│0│Nu_test│100│
╰───┴─────────┴──────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/str_capitalize.html