Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単な質問です。
私は配列を持っています:
array=("1 2 3" "4 5 6")
私が行った場合:
echo ${array[0]} echo ${array[1]}
1 2 3 または 4 5 6 が表示されます。
しかし、もしそうなら:
for iter in ${array[@]} do echo $iter done
表示された値は私が期待したものではありません....誰かが私にそれを使用する正しい方法を教えてもらえますか?