shell-数组复制
基本定义
就是将一个数组的内容复制到另一个数组中。语法为:
newarray=("${array[@]}")
实例
#!/bin/bash
program=(c c++ c# h5 java SQL python PHP perl go .net js MATLAB)
newprogram=("${program[@]}")
echo ${newprogram[@]}
结果为:

就是将一个数组的内容复制到另一个数组中。语法为:
newarray=("${array[@]}")
#!/bin/bash
program=(c c++ c# h5 java SQL python PHP perl go .net js MATLAB)
newprogram=("${program[@]}")
echo ${newprogram[@]}
结果为:
