标签:fine 处理 code lan def nes line number i++
for item in ${array[@]}; do
echo $item
done
结果:
I
am
Chinese
Good
for item in "${array[@]}"; do
echo $item
done
或者
for (( i = 0; i < ${#array[@]}; i++ )); do
echo ${array[$i]}
done
结果:
I am Chinese
Good
标签:fine 处理 code lan def nes line number i++
原文地址:https://www.cnblogs.com/yoyowin/p/13664074.html