${(c)…}
: Number of characters in array
${(c)#array}
counts the characters in an array as if the elements were joined with a space.
Links
Examples
- Print characters of joined array
- Output:
1 2
values=(a b c) echo ${(c)#values}
1
5
BashSupport Pro ist eine Zsh IDE mit Unterstützung für ${(c)…} - probieren Sie es jetzt aus!