Array in Bash变量$VAR 或者 ${VAR} 数组${VAR[$i]} 打印整个数组echo ${VAR[@]} 统计数组元素个数echo ${#VAR[@]} 从文件读入数组(按行读入)VAR=(`cat 'eg.txt'`)