遍历列表值
for i in ${a[*]}; do echo ”$i“ done
数组
### Shell 数组元素个数 ${#array[@]} ###数组的所有元素 ${array[*]} ###字符串长度 ${#str} ### 数组结尾添加元素 array[${#array[@]}]=element
上一篇

2023-03-15
下一篇

2023-03-15