📜  从数组 bash 循环 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:47.432000             🧑  作者: Mango

代码示例1
#!/bin/bash
# declare an array called array and define 3 values
array=( one two three )
for i in "${array[@]}"
do
    echo $i
done