Instantly share code, notes, and snippets.
将字符串分割成数组
str='Tom,Jarry' users=(${(@s/,/)str})
将数组合并成字符串
# 用回车符Join ${(j:\n:)users}