📜  bash 字符串数组 - Shell-Bash 代码示例

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

代码示例2
#to create an array:
$ declare -a my_array
#set number of items with spaceBar seperation:
$ my_array = (item1 item2)
#set specific index item:
$ my_array[0] = item1