📜  bash 添加到数组 - Shell-Bash 代码示例

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

代码示例1
#!/bin/bash

#Making an array
array=(1 2 3)

#Appending the array
array+=(4)

#Printing the array
echo ${array[@]}