${(L)…}
: Convert to lowercase
(L)
converts all letters of the result to lowercase.
(U)
is the opposite and converts to uppercase.
Links
Examples
- Convert array values to lowercase
- Output:
1 2
declare data=(JOE WILLIAM JACK AVERELL) echo "Dalton brothers: ${(L)data}"
1
Dalton brothers: joe william jack averell
BashSupport Pro is a Zsh IDE with support for ${(L)…} – try it now!