シェル - 配列

marr=(a b c)
for i in ${marr[@]}
do
    echo "${i}"
done

おすすめ

転載: www.cnblogs.com/smallredness/p/11532792.html