W3cubDocs

/Nushell

str downcase for strings

Make text lowercase.

Signature

> str downcase {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

Downcase contents

>'NU'|str downcase
nu

Downcase contents

>'TESTa'|str downcase
testa

Downcase contents

> [[ColAColB]; [TestABC]] |str downcaseColA
╭───┬──────┬──────╮
# │ ColA │ ColB │
├───┼──────┼──────┤
0testABC
╰───┴──────┴──────╯

Downcase contents

> [[ColAColB]; [TestABC]] |str downcaseColAColB
╭───┬──────┬──────╮
# │ ColA │ ColB │
├───┼──────┼──────┤
0testabc
╰───┴──────┴──────╯

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/str_downcase.html