${(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 2declare data=(JOE WILLIAM JACK AVERELL) echo "Dalton brothers: ${(L)data}"1Dalton brothers: joe william jack averell
BashSupport Pro ist eine Zsh IDE mit Unterstützung für ${(L)…} - probieren Sie es jetzt aus!