str pascal-case
for strings> str pascal-case {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 |
convert a string to PascalCase
>'nu-shell'|str pascal-case
NuShell
convert a string to PascalCase
>'this-is-the-first-case'|str pascal-case
ThisIsTheFirstCase
convert a string to PascalCase
>'this_is_the_second_case'|str pascal-case
ThisIsTheSecondCase
convert a column from a table to PascalCase
> [[lang, gems]; [nu_test, 100]] |str pascal-caselang
╭───┬────────┬──────╮
│# │ lang │ gems │
├───┼────────┼──────┤
│0│NuTest│100│
╰───┴────────┴──────╯
Tips: Command str pascal-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_pascal-case.html